Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
WiKoDa - Server
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
innohs_one
WiKoDa - Server
Merge requests
!124
Feature/mysql testing
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Feature/mysql testing
feature/mysql-testing
into
master
Overview
0
Commits
38
Pipelines
2
Changes
1
Closed
Finn-Lucas Ziehe
requested to merge
feature/mysql-testing
into
master
3 years ago
Overview
0
Commits
38
Pipelines
2
Changes
1
Expand
Change pipeline regarding to execute the Database Tests on native MySQL
Edited
3 years ago
by
Finn-Lucas Ziehe
0
0
Merge request reports
Viewing commit
450274ac
Prev
Next
Show latest version
1 file
+
6
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Unverified
450274ac
Add code required by tests
· 450274ac
Finn-Lucas Ziehe
authored
3 years ago
articles/apps.py
+
6
−
6
Options
@@ -20,9 +20,9 @@ class ArticlesConfig(AppConfig):
from
articles.models
import
User
,
Tag
# noqa: F401
# pylint: enable=unused-import
# pylint: enable=import-outside-toplevel
#
if User.objects.filter(id_tag=1).count() == 0:
#
user = User(id_tag=1)
#
user.save()
#
for tag in Tag.objects.all():
#
user.favorite_tags.add(tag)
#
user.save()
if
User
.
objects
.
filter
(
id_tag
=
1
).
count
()
==
0
:
user
=
User
(
id_tag
=
1
)
user
.
save
()
for
tag
in
Tag
.
objects
.
all
():
user
.
favorite_tags
.
add
(
tag
)
user
.
save
()
Loading