Skip to content

Commit

Permalink
v1.5.0 - small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Sep 10, 2021
1 parent da50391 commit 08a9a36
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[flake8]
max-line-length=100
max-line-length = 100
extend-ignore = E203
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
pythonversion: ["3.6", "3.7", "3.8", "3.9"]
pythonversion: ["3.7", "3.8", "3.9"]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## v1.5.0 (2021-09-10)

* Drops support for Python 3.6
* Removes the `mock` library in favor of the builtin `unittest.mock` library
* Fix some typos

## v1.4.0 (2021-07-12)

* Clarified various pieces of info
Expand Down
2 changes: 1 addition & 1 deletion README_project.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A longer paragraph description of your project goes here.

```bash
# Install tool
pip3 install project
pip3 install project_name

# Install locally
make install
Expand Down
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
DEV_REQUIREMENTS = [
'coveralls == 3.*',
'flake8',
'mock == 4.*',
'pytest == 6.*',
'pytest-cov == 2.*',
]
Expand All @@ -33,12 +32,12 @@
],
install_requires=REQUIREMENTS,
extras_require={
'dev': DEV_REQUIREMENTS
'dev': DEV_REQUIREMENTS,
},
entry_points={
'console_scripts': [
'PROJECT_NAME_URL=project_name.my_module:main'
'PROJECT_NAME_URL=project_name.my_module:main',
]
},
python_requires='>=3.6',
python_requires='>=3.7',
)
10 changes: 4 additions & 6 deletions test/unit/test_my_module.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import mock
from project_name.my_module import (
main,
MyModule
)
from unittest.mock import patch

from project_name.my_module import MyModule, main


def test_my_function():
MyModule.my_function()


@mock.patch('project_name.my_module.MyModule.my_function')
@patch('project_name.my_module.MyModule.my_function')
def test_main(mock_my_function):
main()
mock_my_function.assert_called_once()

0 comments on commit 08a9a36

Please sign in to comment.