2525
2626
2727@pytest .mark .skipif (condition = os .sep == '\\ ' , reason = "Different test for platforms where os.sep == \\ " )
28- def test_via_run_repo_helper_forward (temp_empty_repo , capsys , file_regression : FileRegressionFixture , monkeypatch ):
28+ def test_via_run_repo_helper_forward (
29+ temp_empty_repo ,
30+ capsys ,
31+ file_regression : FileRegressionFixture ,
32+ monkeypatch ,
33+ example_config ,
34+ ):
2935
30- (temp_empty_repo .path / "repo_helper.yml" ).write_text (
31- (pathlib .Path (__file__ ).parent / "repo_helper.yml_" ).read_text ()
32- )
36+ (temp_empty_repo .path / "repo_helper.yml" ).write_text (example_config )
3337
3438 run_repo_helper (temp_empty_repo .path , force = False , initialise = True , commit = True , message = "Testing Testing" )
3539
@@ -49,7 +53,11 @@ def test_via_run_repo_helper_forward(temp_empty_repo, capsys, file_regression: F
4953
5054@pytest .mark .skipif (condition = os .sep == '/' , reason = "Different test for platforms where os.sep == /" )
5155def test_via_run_repo_helper_backward (
52- temp_empty_repo , capsys , file_regression : FileRegressionFixture , monkeypatch
56+ temp_empty_repo ,
57+ capsys ,
58+ file_regression : FileRegressionFixture ,
59+ monkeypatch ,
60+ example_config ,
5361 ):
5462
5563 # Monkeypatch dulwich so it doesn't try to use the global config.
@@ -61,9 +69,7 @@ def test_via_run_repo_helper_backward(
6169
6270 monkeypatch .setattr (repo_helper .utils , "today" , FAKE_DATE )
6371
64- (temp_empty_repo .path / "repo_helper.yml" ).write_text (
65- (pathlib .Path (__file__ ).parent / "repo_helper.yml_" ).read_text ()
66- )
72+ (temp_empty_repo .path / "repo_helper.yml" ).write_text (example_config )
6773
6874 run_repo_helper (temp_empty_repo .path , force = False , initialise = True , commit = True , message = "Testing Testing" )
6975
@@ -86,15 +92,14 @@ def test_via_Repo_class(
8692 capsys ,
8793 file_regression : FileRegressionFixture ,
8894 data_regression : DataRegressionFixture ,
89- monkeypatch
95+ monkeypatch ,
96+ example_config ,
9097 ):
9198
9299 monkeypatch .setattr (repo_helper .utils , "today" , FAKE_DATE )
93100
94101 with in_directory (temp_repo .path ):
95- (temp_repo .path / "repo_helper.yml" ).write_text (
96- (pathlib .Path (__file__ ).parent / "repo_helper.yml_" ).read_text ()
97- )
102+ (temp_repo .path / "repo_helper.yml" ).write_text (example_config )
98103 (temp_repo .path / "requirements.txt" ).touch ()
99104 (temp_repo .path / "README.rst" ).touch ()
100105 (temp_repo .path / "doc-source" ).mkdir ()
0 commit comments