We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bfc3ba commit 971ecc4Copy full SHA for 971ecc4
services/web/server/tests/unit/isolated/test_products_model.py
@@ -76,3 +76,14 @@ def test_product_to_static():
76
],
77
"isPaymentEnabled": False,
78
}
79
+
80
81
+def test_product_host_regex_with_spaces():
82
+ expected = r"([\.-]{0,1}osparc[\.-])".strip()
83
84
+ data = Product.Config.schema_extra["examples"][2]
85
+ data["host_regex"] = expected + " " # spaces added at the end
86
87
+ product = Product.parse_obj(data)
88
+ assert product.host_regex.pattern == expected
89
+ assert product.host_regex.search("osparcf.speag.com")
0 commit comments