Skip to content

Commit

Permalink
Merge pull request #14 from yoomoney/release/v2.2.3
Browse files Browse the repository at this point in the history
Release/2.2.3
  • Loading branch information
tonchik-tm authored Dec 30, 2021
2 parents 368d32f + 04e42ad commit d8e2bda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v2.2.3 от 30.12.2021
* Небольшой рефакторинг

### v2.2.2 от 28.12.2021
* Проверка IP для уведомлений

Expand Down
2 changes: 1 addition & 1 deletion src/yookassa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

__author__ = "YooMoney"
__email__ = '[email protected]'
__version__ = '2.2.2'
__version__ = '2.2.3'
2 changes: 2 additions & 0 deletions test/unit/test_security_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ class TestSecurityHelper(unittest.TestCase):
def test_check_ip(self):
sh = SecurityHelper()

self.assertTrue(sh.is_ip_trusted('77.75.156.35'))
self.assertTrue(sh.is_ip_trusted('77.75.153.75'))
self.assertTrue(sh.is_ip_trusted('2a02:5180:0:2669::2a:dc6a'))

self.assertFalse(sh.is_ip_trusted('77.75.156.36'))
self.assertFalse(sh.is_ip_trusted('192.168.1.1'))
self.assertFalse(sh.is_ip_trusted('2a02:4180:0:2969::2a:006a'))

0 comments on commit d8e2bda

Please sign in to comment.