Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
greg
Manage
Activity
Members
Labels
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
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
it-bott-integrasjoner
greg
Commits
a4fae612
Commit
a4fae612
authored
3 years ago
by
Andreas Ellewsen
Browse files
Options
Downloads
Plain Diff
Merge branch 'tests/fix-broken-test' into 'master'
Fix broken ou hierarchy test See merge request
!289
parents
63666de6
198c10f6
No related branches found
No related tags found
1 merge request
!289
Fix broken ou hierarchy test
Pipeline
#117852
passed
3 years ago
Stage: venv update
Stage: tests and linting
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gregui/tests/api/views/test_ou.py
+2
-5
2 additions, 5 deletions
gregui/tests/api/views/test_ou.py
with
2 additions
and
5 deletions
gregui/tests/api/views/test_ou.py
+
2
−
5
View file @
a4fae612
...
...
@@ -21,7 +21,7 @@ def test_hierarchy_access_sponsor_ous(client, user_sponsor, unit_bar, log_in):
# Only direct connection visible
response
=
client
.
get
(
url
)
assert
response
.
status_code
==
status
.
HTTP_200_OK
assert
response
.
json
()
==
[{
"
id
"
:
1
,
"
en
"
:
"
Foo EN
"
,
"
nb
"
:
"
Foo NB
"
}]
assert
len
(
response
.
json
()
)
==
1
# Tree visible with hierarchy access
sou
=
SponsorOrganizationalUnit
.
objects
.
get
(
pk
=
1
)
...
...
@@ -29,7 +29,4 @@ def test_hierarchy_access_sponsor_ous(client, user_sponsor, unit_bar, log_in):
sou
.
save
()
response
=
client
.
get
(
url
)
assert
response
.
status_code
==
status
.
HTTP_200_OK
assert
response
.
json
()
==
[
{
"
id
"
:
1
,
"
en
"
:
"
Foo EN
"
,
"
nb
"
:
"
Foo NB
"
},
{
"
id
"
:
2
,
"
en
"
:
"
Bar EN
"
,
"
nb
"
:
"
Bar NB
"
},
]
assert
len
(
response
.
json
())
==
2
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