| Index: tests/conftest.py |
| diff --git a/tests/conftest.py b/tests/conftest.py |
| index a8c274223cafc15d1ed829f2bcfa1fe95eef62f5..23f2d767501267d65b7da56840e85dc9f8b8e297 100644 |
| --- a/tests/conftest.py |
| +++ b/tests/conftest.py |
| @@ -21,3 +21,16 @@ def temp_site(tmpdir_factory): |
| shutil.copytree(os.path.join(ROOTPATH, 'tests', 'test_site'), site_dir) |
| yield site_dir |
| + |
| + |
| +@pytest.fixture(scope='session') |
| +def temp_site_with_conflicts(tmpdir_factory): |
| + out_dir = tmpdir_factory.mktemp('temp_out_conflicts') |
| + site_dir = out_dir.join('test_site').strpath |
| + |
| + shutil.copytree(os.path.join(ROOTPATH, 'tests', 'test_site'), site_dir) |
| + translate_file = os.path.join(site_dir, 'locales', 'en', 'translate') |
| + with open(translate_file, 'w') as f: |
| + f.write('Page with conflicts') |
| + |
| + yield site_dir |