Name the test class ProjectName and the argv helper model_args

This commit was merged in pull request #80.
This commit is contained in:
2026-09-27 22:49:43 +02:00
parent 37d31b9ab1
commit 53b6ffdff1
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ class CheckoutRoot(unittest.TestCase):
self.assertEqual(loop.checkouts(root), [root])
class Project(unittest.TestCase):
class ProjectName(unittest.TestCase):
def test_names_a_checkout_relative_to_code_and_any_other_relative_to_root(self):
with unittest.mock.patch.dict(os.environ, {"HOME": "/h"}):
self.assertEqual(loop.project_name("/h/code/a/b"), "a/b")