Skip to content

Commit 46ecba9

Browse files
committed
💚 update test fixtures
1 parent db29a10 commit 46ecba9

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# flake8: noqa
2-
from test_me._version import __author__, __version__
2+
from test_me._version import __version__
3+
from test_me._version import __author__

tests/test_project.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ def test_project_copy_static(self):
105105

106106
def test_project_templating(self):
107107
def mock_save_file(filename, filecontent):
108-
# file_to_write = os.path.join(
109-
# "tests", "fixtures",
110-
# "project_templating", filename)
111-
# path = os.path.dirname(file_to_write)
112-
# if not os.path.exists(path):
113-
# print(path)
114-
# os.mkdir(path)
115-
# with open(file_to_write, 'w') as f:
116-
# f.write(filecontent)
108+
file_to_write = os.path.join(
109+
"tests", "fixtures",
110+
"project_templating", filename)
111+
path = os.path.dirname(file_to_write)
112+
if not os.path.exists(path):
113+
print(path)
114+
os.mkdir(path)
115+
with open(file_to_write, 'w') as f:
116+
f.write(filecontent)
117117
file_to_read = os.path.join(
118118
"tests", "fixtures", "project_templating", filename
119119
)

0 commit comments

Comments
 (0)