Remove mock and nose development dependencies (#158)
We don't need 'mock' now that we require Python 3.x. ... and nose is no longer used since we switched to pytest as our test runner a long time ago.
This commit is contained in:
parent
1e37c82f64
commit
487d10231d
2 changed files with 2 additions and 4 deletions
|
@ -2,8 +2,6 @@ coverage==4.5.1
|
|||
fakeredis==0.7.0
|
||||
flake8==3.5.0
|
||||
freezegun==0.3.15
|
||||
mock==2.0.0
|
||||
nose==1.3.7
|
||||
pytest-cov==2.5.1
|
||||
pytest==3.6.3
|
||||
tox==3.1.2
|
||||
|
|
4
tests.py
4
tests.py
|
@ -1,10 +1,10 @@
|
|||
from mock import patch
|
||||
import re
|
||||
import time
|
||||
import unittest
|
||||
import uuid
|
||||
import json
|
||||
from unittest import TestCase
|
||||
from unittest import mock
|
||||
|
||||
from cryptography.fernet import Fernet
|
||||
from freezegun import freeze_time
|
||||
|
@ -20,7 +20,7 @@ __author__ = 'davedash'
|
|||
|
||||
class SnapPassTestCase(TestCase):
|
||||
|
||||
@patch('redis.client.StrictRedis', FakeStrictRedis)
|
||||
@mock.patch('redis.client.StrictRedis', FakeStrictRedis)
|
||||
def test_get_password(self):
|
||||
password = "melatonin overdose 1337!$"
|
||||
key = snappass.set_password(password, 30)
|
||||
|
|
Loading…
Reference in a new issue