Remove tests for get_version

This commit is contained in:
Aleksi Häkli 2019-08-30 07:00:55 +03:00
parent c30b2366cf
commit eb43ab4151
No known key found for this signature in database
GPG key ID: 3E7146964D726BBE

View file

@ -5,7 +5,6 @@ from unittest.mock import patch
from django.http import JsonResponse, HttpResponseRedirect, HttpResponse, HttpRequest
from django.test import override_settings, RequestFactory
from axes import get_version
from axes.apps import AppConfig
from axes.models import AccessAttempt
from axes.tests.base import AxesTestCase
@ -26,12 +25,6 @@ from axes.helpers import (
)
class VersionTestCase(AxesTestCase):
@patch('axes.__version__', 'test')
def test_get_version(self):
self.assertEqual(get_version(), 'test')
@override_settings(AXES_ENABLED=False)
class AxesDisabledTestCase(AxesTestCase):
def test_initialize(self):