diff --git a/python/grass/gunittest/reporters.py b/python/grass/gunittest/reporters.py index fde3d6800a6..8914d34306a 100644 --- a/python/grass/gunittest/reporters.py +++ b/python/grass/gunittest/reporters.py @@ -174,6 +174,7 @@ def get_svn_revision(): :returns: SVN revision number as string or None if it is not possible to get """ + return None # TODO: here should be starting directory # but now we are using current as starting with subprocess.Popen( @@ -197,6 +198,7 @@ def get_svn_info(): :returns: SVN info as dictionary or None if it is not possible to obtain it """ + return None try: # TODO: introduce directory, not only current with subprocess.Popen( @@ -250,6 +252,7 @@ def get_svn_path_authors(path, from_date=None): :returns: a set of authors """ + return None # "BASE:1" is the SVN default for local copies revision_range = "BASE:1" if from_date is None else "BASE:{%s}" % from_date try: diff --git a/python/grass/script/testsuite/test_names.py b/python/grass/script/testsuite/test_names.py index 5a61cc8a74f..028db777907 100644 --- a/python/grass/script/testsuite/test_names.py +++ b/python/grass/script/testsuite/test_names.py @@ -17,7 +17,9 @@ def test_append_node_pid(self): self.assertIn(base_name, full_name) self.assertGreater(len(full_name), len(base_name)) self.assertIn(str(os.getpid()), full_name) - self.assertIn(utils.legalize_vector_name(platform.node()), full_name) + self.assertIn( + utils.legalize_vector_name(platform.node(), fallback_prefix=""), full_name + ) self.assertTrue(legal_name(full_name)) # TODO: It should be also a valid vector name # but we don't have a function for that (same for all)