Skip to content

Commit

Permalink
Change fixture scope to session
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasdabbas committed Oct 31, 2023
1 parent 71d685a commit e818367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
from advertools import crawl_headers


@pytest.fixture(scope="module")
@pytest.fixture(scope="session")
def crawl_dir():
with TemporaryDirectory() as temp_dir:
return Path(temp_dir).absolute()


@pytest.fixture(scope="module")
@pytest.fixture(scope="session")
def headers_crawl_df(crawl_dir):
crawl_headers(
["https://adver.tools", "does not exist dot com"],
Expand Down

0 comments on commit e818367

Please sign in to comment.