Private
Public Access
1
0

some warnings

This commit is contained in:
Sander Roosendaal
2021-04-27 15:02:30 +02:00
parent b4ed7a0a6b
commit 6f55a975c1
11 changed files with 63 additions and 51 deletions

View File

@@ -16,7 +16,9 @@ except NameError:
import pytest
import warnings
#warnings.filterwarnings("error",category=UserWarning)
#warnings.filterwarnings("error",
# category=DeprecationWarning
# )
pytestmark = pytest.mark.django_db

View File

@@ -176,7 +176,7 @@ class PlannedSessionTests(TestCase):
d1 = startdate.strftime("%Y%m%d"),
d2 = enddate.strftime("%Y%m%d"),
)
self.assertEquals(
self.assertEqual(
response.get('Content-Disposition'),
'attachment; filename="{name}"'.format(name=filename)
)

View File

@@ -111,7 +111,7 @@ class OwnApi(TestCase):
login = self.c.login(username=self.u.username, password=self.password)
self.assertTrue(login)
w = self.user_workouts[0]
w = self.user_workouts[1]
url = reverse('strokedataform_v2',kwargs={'id':encoder.encode_hex(w.id)})
response = self.c.get(url)