Skip to content

Commit

Permalink
update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
AHReccese committed Jan 29, 2024
1 parent 81c84fc commit 932de11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_reserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@

def test_package_exists():
# test reserved name
uploader = Uploader(test_pypi_token, is_test_pypi_account= True)
uploader = Uploader(test_pypi_token, test_pypi= True)
assert uploader.upload_to_pypi("numpy") == False

def test_valid_package_invalid_credentials():
# test not reserved name -> wrong credentials
wrong_pypi_token = "pypi-wrong-api-token"
uploader = Uploader(wrong_pypi_token, is_test_pypi_account= True)
uploader = Uploader(wrong_pypi_token, test_pypi= True)
assert uploader.upload_to_pypi(get_random_name()) == False

def test_valid_package_valid_credentials():
# test not reserved name -> correct credentials
# uploader = Uploader(test_pypi_token, is_test_pypi_account= True)
# uploader = Uploader(test_pypi_token, test_pypi= True)
# uploader.upload_to_pypi(get_random_name())
assert True == True
assert True == True

0 comments on commit 932de11

Please sign in to comment.