change url in test

This commit is contained in:
lee-t
2025-05-19 11:48:19 -04:00
committed by Peter Cock
parent ebcc56b389
commit 6d03848836

View File

@ -169,7 +169,7 @@ class TestPDBListGetStructure(unittest.TestCase):
def test_retrieve_pdb_file_bad_url(self):
"""Tests retrieving with bad server URL returns None."""
with self.make_temp_directory(os.getcwd()) as tmp:
pdblist = PDBList(server="http://invalid.server", pdb=tmp)
pdblist = PDBList(server=" http://something.wrong ", pdb=tmp)
result = pdblist.retrieve_pdb_file("127d", file_format="pdb")
self.assertIsNone(result)