| 1 | diff --git a/tests/conftest.py b/tests/conftest.py |
| 2 | new file mode 100644 |
| 3 | index 0000000..1aabf2d |
| 4 | |
| 5 | |
| 6 | |
| 7 | +import pytest |
| 8 | +import taglib |
| 9 | +import os |
| 10 | + |
| 11 | +@pytest.fixture |
| 12 | +def test_data(): |
| 13 | + return lambda filename: os.path.abspath(os.path.dirname(__file__)) + "/data/" + filename |
| 14 | + |
| 15 | +@pytest.fixture |
| 16 | +def test_file(test_data): |
| 17 | + return lambda filename: taglib.File(test_data(filename)) |