Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AKPlanning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Blanke
AKPlanning
Commits
b2715dcb
Commit
b2715dcb
authored
2 years ago
by
Benjamin Hättasch
Browse files
Options
Downloads
Patches
Plain Diff
Fix test method titles (naming convention)
parent
84d4cceb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
AKModel/tests.py
+3
-3
3 additions, 3 deletions
AKModel/tests.py
AKPlan/tests.py
+1
-1
1 addition, 1 deletion
AKPlan/tests.py
with
4 additions
and
4 deletions
AKModel/tests.py
+
3
−
3
View file @
b2715dcb
...
...
@@ -38,13 +38,13 @@ class BasicViewTests:
url
=
reverse_lazy
(
view_name_with_prefix
,
kwargs
=
view_name
[
1
])
return
view_name_with_prefix
,
url
def
test
V
iews
F
or200
(
self
):
def
test
_v
iews
_f
or
_
200
(
self
):
for
view_name
in
self
.
VIEWS
:
view_name_with_prefix
,
url
=
self
.
_name_and_url
(
view_name
)
response
=
self
.
client
.
get
(
url
)
self
.
assertEqual
(
response
.
status_code
,
200
,
msg
=
f
"
{
view_name_with_prefix
}
(
{
url
}
) broken
"
)
def
test
A
ccess
C
ontrol
S
taff
O
nly
(
self
):
def
test
_a
ccess
_c
ontrol
_s
taff
_o
nly
(
self
):
self
.
client
.
logout
()
for
view_name
in
self
.
VIEWS_STAFF_ONLY
:
view_name_with_prefix
,
url
=
self
.
_name_and_url
(
view_name
)
...
...
@@ -76,7 +76,7 @@ class ModelViewTests(BasicViewTests, TestCase):
(
DefaultSlot
,
'
defaultslot
'
)
]
def
test
A
dmin
(
self
):
def
test
_a
dmin
(
self
):
self
.
client
.
force_login
(
self
.
admin_user
)
for
model
in
self
.
ADMIN_MODELS
:
...
...
This diff is collapsed.
Click to expand it.
AKPlan/tests.py
+
1
−
1
View file @
b2715dcb
...
...
@@ -14,7 +14,7 @@ class PlanViewTests(BasicViewTests, TestCase):
(
'
plan_track
'
,
{
'
event_slug
'
:
'
kif42
'
,
'
pk
'
:
1
}),
]
def
test
P
lan
H
idden
(
self
):
def
test
_p
lan
_h
idden
(
self
):
view_name_with_prefix
,
url
=
self
.
_name_and_url
((
'
plan_overview
'
,
{
'
event_slug
'
:
'
kif23
'
}))
self
.
client
.
logout
()
...
...
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