Skip to content

Commit fe3587d

Browse files
Merge pull request #36 from tomas-gajarsky/hotfix/test_fixture_scope
Hotfix/test fixture scope
2 parents 890cb7e + e941a8b commit fe3587d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## 0.2.4
4+
5+
Released on February 4, 2023.
6+
7+
### Changed
8+
* scope of some test fixtures from function to session
9+
310

411
## 0.2.3
512

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ def cfg(request) -> None:
8282
return cfg
8383

8484

85-
@pytest.fixture()
85+
@pytest.fixture(scope="session")
8686
def analyzer(cfg) -> FaceAnalyzer:
8787
analyzer = FaceAnalyzer(cfg.analyzer)
8888
return analyzer
8989

9090

91-
@pytest.fixture()
91+
@pytest.fixture(scope="session")
9292
def response(cfg, analyzer) -> ImageData:
9393
response = analyzer.run(
9494
path_image=cfg.path_image,

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.3
1+
0.2.4

0 commit comments

Comments
 (0)