From 7d3c9c7c38008db8ca077b2b1b6dc3e6df43ec95 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Mon, 25 Mar 2019 16:59:15 -0700 Subject: [PATCH] Update test regular expressions --- tests/test_pkgfiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_pkgfiles.py b/tests/test_pkgfiles.py index 6fe008b..f18a50f 100644 --- a/tests/test_pkgfiles.py +++ b/tests/test_pkgfiles.py @@ -10,9 +10,9 @@ from unittest.mock import MagicMock, patch # ========== Constants ========== TESTING_MODULE = f"packaging_scripts.pkgfiles" # Match any pkgfile of any name with the .pkg.tar.* extension -PKGREGEX = r"^\w+[.]pkg[.]tar([.]\w+)?$" +PKGREGEX = r"^[\w.+/-]+\.pkg\.tar(\.\w+)?$" # Match any sigfile of any name with the .pkg.tar.*.sig extension -SIGREGEX = r"^\w+[.]pkg[.]tar([.]\w+)?[.]sig$" +SIGREGEX = r"^[\w.+/-]+\.pkg\.tar(\.\w+)?\.sig$" ALL_PKGFILES = [ Path("pkg1.pkg.tar.xz"),