From f98daef03181adca09cbdd94cf51df342b198a44 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Wed, 26 Aug 2020 12:44:54 +0200 Subject: [PATCH] tests: tweak mageia detection - create a versioned directory for the current VERSION file, fixing the typo in the distro name - move the test to an own function Reviewed-by: Cole Robinson Signed-off-by: Pino Toscano --- tests/data/urldetect/{magaeia => mageia/8}/VERSION | 0 tests/test_urldetect.py | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) rename tests/data/urldetect/{magaeia => mageia/8}/VERSION (100%) diff --git a/tests/data/urldetect/magaeia/VERSION b/tests/data/urldetect/mageia/8/VERSION similarity index 100% rename from tests/data/urldetect/magaeia/VERSION rename to tests/data/urldetect/mageia/8/VERSION diff --git a/tests/test_urldetect.py b/tests/test_urldetect.py index 4993d230..71e5e1a8 100644 --- a/tests/test_urldetect.py +++ b/tests/test_urldetect.py @@ -129,9 +129,12 @@ def test_suse(): kernel="linux64") +def test_mageia(): + _test("mageia/8", initrd="all.rdz") + + def test_misc(): _test("generic") - _test("magaeia", initrd="all.rdz") with pytest.raises(ValueError) as e: _test("empty")