Skip to content

Commit

Permalink
Extend test_github_install_official_multimodule_and_check_metadata() …
Browse files Browse the repository at this point in the history
…test
  • Loading branch information
tmszi committed Jan 3, 2025
1 parent 922bc5e commit bc19b1f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/g.extension/testsuite/test_addons_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class TestModuleDownloadFromDifferentSources(TestCase):

def setUp(self):
"""Make sure we are not dealing with some old files"""
g_gisenv = SimpleModule("g.gisenv", set="DEBUG=1")
self.assertModule(g_gisenv)
if self.install_prefix.exists():
files = [path.name for path in self.install_prefix.iterdir()]
if files:
Expand All @@ -58,6 +60,8 @@ def setUp(self):

def tearDown(self):
"""Remove created files"""
g_gisenv = SimpleModule("g.gisenv", set="DEBUG=0")
self.assertModule(g_gisenv)
silent_rmtree(str(self.install_prefix))

@unittest.skipIf(ms_windows, "currently not supported on MS Windows")
Expand Down Expand Up @@ -232,6 +236,10 @@ def test_github_install_official_multimodule_and_check_metadata(self):
_("No metadata available for module '{}':").format(extension),
gextension.outputs.stderr,
)
self.assertIn(
f"Addon name <{extension}> which install only HTML man page.",
gextension.outputs.stderr,
)


if __name__ == "__main__":
Expand Down

0 comments on commit bc19b1f

Please sign in to comment.