@@ -23,7 +23,7 @@ def get_free_port():
23
23
24
24
25
25
@pytest .fixture (autouse = True )
26
- def repo_config () -> RepoConfig :
26
+ def repo_config () -> Generator [ RepoConfig , None , None ] :
27
27
yield RepoConfig (
28
28
id = 321 ,
29
29
name = "Kevin-s-Adventure-Game" ,
@@ -34,17 +34,17 @@ def repo_config() -> RepoConfig:
34
34
)
35
35
36
36
37
- @pytest .fixture ( autouse = True )
38
- def op (repo_config : RepoConfig ) -> Generator [RemoteRepoOperator , None , None ]:
39
- yield RemoteRepoOperator (repo_config = repo_config , access_token = config .GITHUB_TOKEN )
37
+ @pytest .fixture
38
+ def op (repo_config : RepoConfig , tmpdir ) -> Generator [RemoteRepoOperator , None , None ]:
39
+ yield RemoteRepoOperator (repo_config = repo_config , access_token = config .GITHUB_TOKEN , base_dir = tmpdir )
40
40
41
41
42
- @pytest .fixture ( autouse = True )
43
- def git_repo_client (repo_config : RepoConfig ) -> GitRepoClient :
42
+ @pytest .fixture
43
+ def git_repo_client (repo_config : RepoConfig ) -> Generator [ GitRepoClient , None , None ] :
44
44
yield GitRepoClient (repo_config = repo_config , access_token = config .GITHUB_TOKEN )
45
45
46
46
47
- @pytest .fixture ( autouse = True )
47
+ @pytest .fixture
48
48
def sandbox_client (repo_config : RepoConfig , get_free_port , tmpdir ) -> Generator [SandboxClient , None , None ]:
49
49
# Use the pre-determined free port and a temporary directory
50
50
repo_config .base_dir = str (tmpdir )
0 commit comments