From a2188fa9c6ce6578056ed58203afb1e110ec098d Mon Sep 17 00:00:00 2001 From: AHReccese Date: Mon, 22 Jul 2024 22:08:05 +0330 Subject: [PATCH] add test case to check conflict with non-standard python library modules + fixing a typo --- tests/test_reserver.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/test_reserver.py b/tests/test_reserver.py index 4ee2de1..d8551c5 100644 --- a/tests/test_reserver.py +++ b/tests/test_reserver.py @@ -27,5 +27,11 @@ def test_valid_package_invalid_credentials(): def test_valid_package_valid_credentials(): # test not reserved name -> correct credentials # uploader = PyPIUploader(test_pypi_token, test_pypi=True) - # uploader.upload_to_pypi(get_random_name()) + # uploader.upload(get_random_name()) + assert True == True + +def test_module_conflict(): + # try to reserve a name which conflicts with the module name of a previously taken package (the taken package itself has a different name, but it's module name has conflict)." + # uploader = PyPIUploader(pypi_token, test_pypi=False) + # uploader.upload("freeze") == False assert True == True