Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub
ViralHostRangeDB
Commits
40820bbe
Commit
40820bbe
authored
Feb 03, 2022
by
Bryan BRANCOTTE
Browse files
add a curator
parent
5562ac65
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/viralhostrange/viralhostrangedb/tests/base_test_case.py
View file @
40820bbe
...
...
@@ -85,6 +85,15 @@ class OneDataSourceTestCase(TestCase):
)
Group
.
objects
.
get
(
name
=
"Admin"
).
user_set
.
add
(
self
.
staff_admin
)
################################################################################
self
.
curator
=
get_user_model
().
objects
.
create
(
username
=
"u_curator"
,
first_name
=
"curatorF"
,
last_name
=
"curatorL"
,
email
=
"u_curator@a.b"
,
)
business_process
.
set_curator
(
self
.
curator
,
True
)
################################################################################
self
.
user
=
get_user_model
().
objects
.
create
(
username
=
"user"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment