root: remove python requirement from pipfile

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-09-16 10:28:50 +02:00
parent 471f7d9c62
commit 124071f9be
3 changed files with 4 additions and 8 deletions

View File

@ -49,9 +49,6 @@ ua-parser = "*"
deepmerge = "*" deepmerge = "*"
colorama = "*" colorama = "*"
[requires]
python_version = "3.9"
[dev-packages] [dev-packages]
bandit = "*" bandit = "*"
black = "==21.5b1" black = "==21.5b1"

6
Pipfile.lock generated
View File

@ -1,12 +1,10 @@
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "f0befa9b3dacc1c3363b9442fa7a43f6be2c46a8fcb80a994230d288a384e54d" "sha256": "19d5324fd1a4af125ed57a683030ca14ee2d3648117748e4b32656875484728e"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {},
"python_version": "3.9"
},
"sources": [ "sources": [
{ {
"name": "pypi", "name": "pypi",

View File

@ -1,6 +1,7 @@
"""consent tests""" """consent tests"""
from time import sleep from time import sleep
from django.http.response import HttpResponse
from django.urls import reverse from django.urls import reverse
from django.utils.encoding import force_str from django.utils.encoding import force_str
from rest_framework.test import APITestCase from rest_framework.test import APITestCase
@ -40,7 +41,7 @@ class TestConsentStage(APITestCase):
session = self.client.session session = self.client.session
session[SESSION_KEY_PLAN] = plan session[SESSION_KEY_PLAN] = plan
session.save() session.save()
response = self.client.post( response: HttpResponse = self.client.post(
reverse("authentik_api:flow-executor", kwargs={"flow_slug": flow.slug}), reverse("authentik_api:flow-executor", kwargs={"flow_slug": flow.slug}),
{}, {},
) )