tests/test_v1/__init__.py
raw| 1 | from unmagic import fixture |
| 2 | |
| 3 | from .. import ignore_v1_warnings |
| 4 | |
| 5 | |
| 6 | @fixture(autouse=__file__) |
| 7 | def ignore_v1_deprecations(): |
| 8 | with ignore_v1_warnings(): |
| 9 | yield |
| 10 | |
| 11 | |
| 12 | @fixture(autouse=__file__, scope="class") |
| 13 | def ignore_v1_deprecations_in_class_setup(): |
| 14 | with ignore_v1_warnings(): |
| 15 | yield |
| 16 | |
| 17 | |
| 18 | with ignore_v1_warnings(): |
| 19 | from . import models # noqa: F401 |