From 487d10231dc61c86374e099ca310e367d6a39ee5 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Tue, 17 May 2022 10:57:35 -0700 Subject: [PATCH] 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. --- dev-requirements.txt | 2 -- tests.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index 99d441b..13688ba 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -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 diff --git a/tests.py b/tests.py index 1836801..464d5c4 100644 --- a/tests.py +++ b/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)