Skip to content
Snippets Groups Projects
conftest.py 312 B
Newer Older

import pytest
from tdd_exo_2 import CityFinder


@pytest.fixture(autouse=True)
def change_test_dir(request, monkeypatch):
    monkeypatch.chdir(request.fspath.dirname)


# Initializing function for CityFinder functions
@pytest.fixture(name='city_finder')
def fixture_init_city_finder():
    return CityFinder()