Skip to content

Commit 08a9a36

Browse files
committed
v1.5.0 - small fixes
1 parent da50391 commit 08a9a36

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

.flake8

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[flake8]
2-
max-line-length=100
2+
max-line-length = 100
3+
extend-ignore = E203

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
pythonversion: ["3.6", "3.7", "3.8", "3.9"]
23+
pythonversion: ["3.7", "3.8", "3.9"]
2424
steps:
2525
- name: Checkout Repository
2626
uses: actions/checkout@v2

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# CHANGELOG
22

3+
## v1.5.0 (2021-09-10)
4+
5+
* Drops support for Python 3.6
6+
* Removes the `mock` library in favor of the builtin `unittest.mock` library
7+
* Fix some typos
8+
39
## v1.4.0 (2021-07-12)
410

511
* Clarified various pieces of info

README_project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ A longer paragraph description of your project goes here.
1919

2020
```bash
2121
# Install tool
22-
pip3 install project
22+
pip3 install project_name
2323

2424
# Install locally
2525
make install

setup.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
DEV_REQUIREMENTS = [
1212
'coveralls == 3.*',
1313
'flake8',
14-
'mock == 4.*',
1514
'pytest == 6.*',
1615
'pytest-cov == 2.*',
1716
]
@@ -33,12 +32,12 @@
3332
],
3433
install_requires=REQUIREMENTS,
3534
extras_require={
36-
'dev': DEV_REQUIREMENTS
35+
'dev': DEV_REQUIREMENTS,
3736
},
3837
entry_points={
3938
'console_scripts': [
40-
'PROJECT_NAME_URL=project_name.my_module:main'
39+
'PROJECT_NAME_URL=project_name.my_module:main',
4140
]
4241
},
43-
python_requires='>=3.6',
42+
python_requires='>=3.7',
4443
)

test/unit/test_my_module.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1-
import mock
2-
from project_name.my_module import (
3-
main,
4-
MyModule
5-
)
1+
from unittest.mock import patch
2+
3+
from project_name.my_module import MyModule, main
64

75

86
def test_my_function():
97
MyModule.my_function()
108

119

12-
@mock.patch('project_name.my_module.MyModule.my_function')
10+
@patch('project_name.my_module.MyModule.my_function')
1311
def test_main(mock_my_function):
1412
main()
1513
mock_my_function.assert_called_once()

0 commit comments

Comments
 (0)