docstr: Test `huggingface-cli upload my-folder to dummy-repo`.
docstr_tok: ["Test","`","huggingface-cli","upload","my-folder","to","dummy-repo","`","."]
code: def test_upload_basic(self) -> None:
      """Test `huggingface-cli upload my-folder to dummy-repo`."""
      cmd = UploadCommand(
          self.parser.parse_args(
              ["upload", DUMMY_MODEL_ID, "my-folder"]
          )
      )
      self.assertEqual(cmd.repo_id, DUMMY_MODEL_ID)
      self.assertEqual(cmd.local_path, "my-folder")
      self.assertEqual(cmd.path_in_repo, ".")  # implicit
      self.assertEqual(cmd.repo_type, "model")
      self.assertEqual(cmd.revision, None)
      self.assertEqual(cmd.include, None)
      self.assertEqual(cmd.exclude, None)
      self.assertEqual(cmd.delete, None)
      self.assertEqual(cmd.commit_message, None)
      self.assertEqual(cmd.commit_description, None)
      self.assertEqual(cmd.create_pr, False)
      self.assertEqual(cmd.every, None)
      self.assertEqual(cmd.api.token, None)
      self.assertEqual(cmd.quiet, False)
  
imports: import os
  import unittest
  import warnings
  from argparse import ArgumentParser, Namespace
  from contextlib import contextmanager
  from pathlib import Path
  from typing import Generator
  from unittest.mock import Mock, patch
  from huggingface_hub.commands.delete_cache import DeleteCacheCommand
  from huggingface_hub.commands.download import DownloadCommand
  from huggingface_hub.commands.scan_cache import ScanCacheCommand
  from huggingface_hub.commands.upload import UploadCommand
  from huggingface_hub.utils import RevisionNotFoundError, SoftTemporaryDirectory, capture_output
  from .testing_utils import DUMMY_MODEL_ID
label_desc: Use image node_id 2 for calling the TestUploadCommand obj's underlying member method code with example usage: obj.test_upload_basic() without return types