Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iric-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioinfo_iric
iric-data
Commits
4fa5753d
Commit
4fa5753d
authored
6 years ago
by
Jonathan Séguin
Browse files
Options
Downloads
Patches
Plain Diff
Update testing_utilities.py
parent
c972e3b6
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Resolve "Basic command line script to input NGS / Chemo toy data"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/testing_utilities.py
+3
-15
3 additions, 15 deletions
tests/testing_utilities.py
with
3 additions
and
15 deletions
tests/testing_utilities.py
+
3
−
15
View file @
4fa5753d
...
...
@@ -22,24 +22,12 @@ def create_test_user():
def
populate_test_db
():
create_test_user
()
# User.objects.create_user('test', email='test@test.com', password='test')
# """
# Add
s
records to an empty test database
# Add records to an empty test database
# """
# cat = Category.objects.create(cat_name='Widgets')
# cat_inactive = Category.objects.create(cat_name='Inactive Category',
# cat_active=False)
# thing1 = Thing.objects.create(category=cat,
# thing_desc="Test Thing",
# thing_model="XYZ1234",
# thing_brand="Brand X")
#
# User.objects.create_user(
# username='admin',
# email='admin@test.com',
# password='secret666')
#
# ...
#
def
login_test_user
(
self
):
self
.
client
.
login
(
username
=
'
test
'
,
password
=
'
test
'
)
return
self
...
...
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