Skip to content

Commit

Permalink
Prepare the release
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiwei2017 committed Aug 12, 2021
2 parents 06d35fd + 81452eb commit dc345e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .pyup.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# configure updates globally
# default: all
# allowed: all, insecure, False
update: all
update: insecure

# configure dependency pinning globally
# default: True
# allowed: True, False
pin: True
pin: False

# set the default branch
# default: empty, the default branch on GitHub
Expand All @@ -15,7 +15,7 @@ branch: dev
# update schedule
# default: empty
# allowed: "every day", "every week", ..
schedule: "every year"
schedule: "every month"

# search for requirement files
# default: True
Expand All @@ -28,8 +28,8 @@ search: True
requirements:
- test-requirements.txt:
# update all dependencies and pin them
update: all
pin: True
update: False
pin: False

# add a label to pull requests, default is not set
# requires private repo permissions, even on public repos
Expand Down
7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ named-enum
.. image:: https://pepy.tech/badge/named-enum
:target: https://pepy.tech/project/named-enum

.. send message to the author
.. image:: https://img.shields.io/badge/saythanks.io-☼-1EAEDB.svg
:target: https://saythanks.io/to/KnightConan
.. Quality Gate Status
.. image:: https://sonarcloud.io/api/project_badges/measure?project=KnightConan_named_enum&metric=alert_status
:target: https://sonarcloud.io/dashboard?id=KnightConan_named_enum


Introduction
------------
Expand Down
3 changes: 1 addition & 2 deletions tests/test_cls_NamedEnum.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,5 @@ class TestNamedEnum(CommonEnumTest, ExtraEnumTest):

def test___new__(self):
with pytest.raises(AttributeError) as exe_info:
type("TripleFakeEnum", (NamedEnum, ),
{'_field_names_': ("name, value, key")})
type("TripleFakeEnum", (NamedEnum, ), {'_field_names_': ("name, value, key")})
assert "'name' or 'value' cannot be attributes" == str(exe_info.value)
3 changes: 1 addition & 2 deletions tests/test_cls_NamedEnumMeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ def test___repr__(self):
@mock.patch.object(NamedEnumMeta, '_member_map_', create=True,
new_callable=mock.PropertyMock(return_value=Color._member_map_))
def test_names_values(self, mocked__member_map_, func_name, as_tuple, expected_result):
expected_result = ('red', 'blue')
result = NamedEnumMeta.names(NamedEnumMeta, as_tuple)
result = getattr(NamedEnumMeta, func_name)(NamedEnumMeta, as_tuple)
if as_tuple:
assert result == expected_result
else:
Expand Down

0 comments on commit dc345e9

Please sign in to comment.