From 0d4e5e7ec8d2063db6a96c174cdbd8998d0acdce Mon Sep 17 00:00:00 2001 From: Ryan Northey Date: Thu, 15 Sep 2016 14:51:14 +0100 Subject: [PATCH] Add vf_rules parametrized fixture --- pytest_pootle/fixtures/models/vfolder.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pytest_pootle/fixtures/models/vfolder.py b/pytest_pootle/fixtures/models/vfolder.py index 59e9cd44301..e7a56ca4101 100644 --- a/pytest_pootle/fixtures/models/vfolder.py +++ b/pytest_pootle/fixtures/models/vfolder.py @@ -9,6 +9,17 @@ import pytest +VF_RULE_TESTS = [ + "*", + "store.po", + "*/subdir0/*"] + + +@pytest.fixture(params=VF_RULE_TESTS) +def vf_rules(request): + return request.param + + @pytest.fixture def vfolder0(): from virtualfolder.models import VirtualFolder