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:
Jon Parise 2022-05-17 10:57:35 -07:00 committed by GitHub
parent 1e37c82f64
commit 487d10231d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -2,8 +2,6 @@ coverage==4.5.1
fakeredis==0.7.0 fakeredis==0.7.0
flake8==3.5.0 flake8==3.5.0
freezegun==0.3.15 freezegun==0.3.15
mock==2.0.0
nose==1.3.7
pytest-cov==2.5.1 pytest-cov==2.5.1
pytest==3.6.3 pytest==3.6.3
tox==3.1.2 tox==3.1.2

View file

@ -1,10 +1,10 @@
from mock import patch
import re import re
import time import time
import unittest import unittest
import uuid import uuid
import json import json
from unittest import TestCase from unittest import TestCase
from unittest import mock
from cryptography.fernet import Fernet from cryptography.fernet import Fernet
from freezegun import freeze_time from freezegun import freeze_time
@ -20,7 +20,7 @@ __author__ = 'davedash'
class SnapPassTestCase(TestCase): class SnapPassTestCase(TestCase):
@patch('redis.client.StrictRedis', FakeStrictRedis) @mock.patch('redis.client.StrictRedis', FakeStrictRedis)
def test_get_password(self): def test_get_password(self):
password = "melatonin overdose 1337!$" password = "melatonin overdose 1337!$"
key = snappass.set_password(password, 30) key = snappass.set_password(password, 30)