Skip to content

Commit

Permalink
🥚 🎡 release 0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Oct 6, 2019
1 parent 46ecba9 commit 688e2a1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 37 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Change log
================================================================================

0.0.7 - tbd
0.0.7 - 6/10/2019
--------------------------------------------------------------------------------

Updated
Expand Down
2 changes: 1 addition & 1 deletion changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ releases:
details:
- "upgrade yehua to use pypi-mobans-pkg version 0.0.7"
- "generated project will have azure build pipeline, moban command stage in travis and local flake8 check"
date: tbd
date: 6/10/2019
version: 0.0.7
- changes:
- action: Updated
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# flake8: noqa
from test_me._version import __version__
from test_me._version import __author__
from test_me._version import __author__, __version__
3 changes: 0 additions & 3 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ mock
codecov
coverage
flake8
black;python_version>="3.6"
isort;python_version>="3.6"

42 changes: 12 additions & 30 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,34 +60,16 @@ def test_project_copy_static(self):
calls = self.copy_file.call_args_list
calls = [split_call_arguments(call) for call in calls]
expected = [
[
"CUSTOM_README.rst",
"test-me/.moban.d/CUSTOM_README.rst.jj2",
],
[
"custom_setup.py.jj2",
"test-me/.moban.d/custom_setup.py.jj2",
],
["CUSTOM_README.rst", "test-me/.moban.d/CUSTOM_README.rst.jj2"],
["custom_setup.py.jj2", "test-me/.moban.d/custom_setup.py.jj2"],
[
"tests/custom_requirements.txt.jj2",
"test-me/.moban.d/tests/custom_requirements.txt.jj2",
],
[
"CHANGELOG.rst",
"test-me/CHANGELOG.rst",
],
[
"MANIFEST.in",
"test-me/MANIFEST.in",
],
[
"setup.cfg",
"test-me/setup.cfg",
],
[
"azure-pipelines.yml",
"test-me/azure-pipelines.yml",
],
["CHANGELOG.rst", "test-me/CHANGELOG.rst"],
["MANIFEST.in", "test-me/MANIFEST.in"],
["setup.cfg", "test-me/setup.cfg"],
["azure-pipelines.yml", "test-me/azure-pipelines.yml"],
[
".azure-pipelines-steps-macos.yml",
"test-me/.azure-pipelines-steps-macos.yml",
Expand All @@ -106,14 +88,14 @@ def test_project_copy_static(self):
def test_project_templating(self):
def mock_save_file(filename, filecontent):
file_to_write = os.path.join(
"tests", "fixtures",
"project_templating", filename)
"tests", "fixtures", "project_templating", filename
)
path = os.path.dirname(file_to_write)
if not os.path.exists(path):
print(path)
os.mkdir(path)
with open(file_to_write, 'w') as f:
f.write(filecontent)
print(path)
os.mkdir(path)
with open(file_to_write, "w") as f:
f.write(filecontent)
file_to_read = os.path.join(
"tests", "fixtures", "project_templating", filename
)
Expand Down

0 comments on commit 688e2a1

Please sign in to comment.