Move test resources to distinct folder

This commit is contained in:
bom 2023-02-09 17:09:42 +01:00
parent 9d1726051d
commit 3659b888f8
5 changed files with 4 additions and 4 deletions

View file

@ -29,7 +29,7 @@ def test_version():
def test_gradle(tmp_path):
# init
file_name = 'config.gradle'
with open(f'test/{file_name}', 'r') as gradle_file:
with open(f'test/resources/{file_name}', 'r') as gradle_file:
contents = gradle_file.read()
f = tmp_path / file_name
@ -46,7 +46,7 @@ def test_gradle(tmp_path):
def test_json(tmp_path):
# init
file_name = 'config.json'
with open(f'test/{file_name}', 'r') as gradle_file:
with open(f'test/resources/{file_name}', 'r') as gradle_file:
contents = gradle_file.read()
f = tmp_path / file_name
@ -63,7 +63,7 @@ def test_json(tmp_path):
def test_clojure(tmp_path):
# init
file_name = 'config.clj'
with open(f'test/{file_name}', 'r') as gradle_file:
with open(f'test/resources/{file_name}', 'r') as gradle_file:
contents = gradle_file.read()
f = tmp_path / file_name
@ -80,7 +80,7 @@ def test_clojure(tmp_path):
def test_python(tmp_path):
# init
file_name = 'config.py'
with open(f'test/{file_name}', 'r') as gradle_file:
with open(f'test/resources/{file_name}', 'r') as gradle_file:
contents = gradle_file.read()
f = tmp_path / file_name