docstr: Test `huggingface-cli upload my-file to dummy-repo with all options selected`.
docstr_tok: ["Test","`","huggingface-cli","upload","my-file","to","dummy-repo","with","all","options","selected","`","."]
code: def test_upload_with_all_options(self) -> None:
      """Test `huggingface-cli upload my-file to dummy-repo with all options selected`."""
      cmd = UploadCommand(
          self.parser.parse_args(
              [
                  "upload",
                  DUMMY_MODEL_ID,
                  "my-file",
                  "data/",
                  "--repo-type",
                  "dataset",
                  "--revision",
                  "v1.0.0",
                  "--include",
                  "*.json",
                  "*.yaml",
                  "--exclude",
                  "*.log",
                  "*.txt",
                  "--delete",
                  "*.config",
                  "*.secret",
                  "--commit-message",
                  "My commit message",
                  "--commit-description",
                  "My commit description",
                  "--create-pr",
                  "--every",
                  "5",
                  "--token",
                  "my-token",
                  "--quiet",
              ]
          )
      )
      self.assertEqual(cmd.repo_id, DUMMY_MODEL_ID)
      self.assertEqual(cmd.local_path, "my-file")
      self.assertEqual(cmd.path_in_repo, "data/")
      self.assertEqual(cmd.repo_type, "dataset")
      self.assertEqual(cmd.revision, "v1.0.0")
      self.assertEqual(cmd.include, ["*.json", "*.yaml"])
      self.assertEqual(cmd.exclude, ["*.log", "*.txt"])
      self.assertEqual(cmd.delete, ["*.config", "*.secret"])
      self.assertEqual(cmd.commit_message, "My commit message")
      self.assertEqual(cmd.commit_description, "My commit description")
      self.assertEqual(cmd.create_pr, True)
      self.assertEqual(cmd.every, 5)
      self.assertEqual(cmd.api.token, "my-token")
      self.assertEqual(cmd.quiet, True)
  
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 3 for calling the TestUploadCommand obj's underlying member method code with example usage: obj.test_upload_with_all_options() without return types