Skip to content

Commit 70f8e28

Browse files
committed
fix integration test 1
1 parent a3ed077 commit 70f8e28

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests_integration/lib/_run_test_cases.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
2+
from importlib import resources
23

34
from github import Github
4-
from importlib_resources import as_file, files
55

66
from conda_forge_tick.settings import settings
77

@@ -10,7 +10,7 @@
1010
from ._shared import FEEDSTOCK_SUFFIX, get_github_token
1111

1212
LOGGER = logging.getLogger(__name__)
13-
EMPTY_GRAPH_DIR = files("tests_integration.resources").joinpath("empty-graph").name
13+
EMPTY_GRAPH_DIR = resources.files("tests_integration.resources").joinpath("empty-graph")
1414

1515

1616
def close_all_open_pull_requests():
@@ -28,7 +28,7 @@ def close_all_open_pull_requests():
2828

2929

3030
def reset_cf_graph():
31-
with as_file(EMPTY_GRAPH_DIR) as empty_graph_dir:
31+
with resources.as_file(EMPTY_GRAPH_DIR) as empty_graph_dir:
3232
IntegrationTestHelper().overwrite_github_repository(
3333
GitHubAccount.REGRO_ORG,
3434
"cf-graph-countyfair",

tests_integration/test_integration.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ def in_fresh_cf_graph():
207207
)
208208

209209
subprocess.run(
210-
["git", "config", 'http."https://github.com".proxy', '""'], check=True
210+
["git", "config", 'http."https://github.com".proxy', '""'],
211+
check=True,
212+
cwd=cf_graph_dir,
211213
)
212214

213215
os.chdir(cf_graph_dir)

0 commit comments

Comments
 (0)