Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
4c51dd8f
Verified
Commit
4c51dd8f
authored
5 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
[Tests] Use file global marks everywhere
parent
25846f1f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
biscuit/core/tests/models/test_person.py
+3
-1
3 additions, 1 deletion
biscuit/core/tests/models/test_person.py
biscuit/core/tests/views/test_account.py
+3
-4
3 additions, 4 deletions
biscuit/core/tests/views/test_account.py
with
6 additions
and
5 deletions
biscuit/core/tests/models/test_person.py
+
3
−
1
View file @
4c51dd8f
...
...
@@ -3,7 +3,9 @@ import pytest
from
biscuit.core.models
import
Person
@pytest.mark.django_db
pytestmark
=
pytest
.
mark
.
django_db
def
test_full_name
():
_person
=
Person
.
objects
.
create
(
first_name
=
"
Jane
"
,
last_name
=
"
Doe
"
)
...
...
This diff is collapsed.
Click to expand it.
biscuit/core/tests/views/test_account.py
+
3
−
4
View file @
4c51dd8f
...
...
@@ -4,7 +4,9 @@ from django.urls import reverse
import
pytest
@pytest.mark.django_db
pytestmark
=
pytest
.
mark
.
django_db
def
test_index_not_logged_in
(
client
):
response
=
client
.
get
(
"
/
"
)
...
...
@@ -12,7 +14,6 @@ def test_index_not_logged_in(client):
assert
reverse
(
settings
.
LOGIN_URL
)
in
response
.
content
.
decode
(
"
utf-8
"
)
@pytest.mark.django_db
def
test_login
(
client
,
django_user_model
):
username
=
"
foo
"
password
=
"
bar
"
...
...
@@ -26,7 +27,6 @@ def test_login(client, django_user_model):
assert
reverse
(
settings
.
LOGIN_URL
)
not
in
response
.
content
.
decode
(
"
utf-8
"
)
@pytest.mark.django_db
def
test_index_not_linked_to_person
(
client
,
django_user_model
):
username
=
"
foo
"
password
=
"
bar
"
...
...
@@ -40,7 +40,6 @@ def test_index_not_linked_to_person(client, django_user_model):
assert
"
You are not linked to a person
"
in
response
.
content
.
decode
(
"
utf-8
"
)
@pytest.mark.django_db
def
test_logout
(
client
,
django_user_model
):
username
=
"
foo
"
password
=
"
bar
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment