Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
steering
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
AURA
steering
Commits
fed0f017
"tests/base_config.liq" did not exist on "de56788034fcf7053029f9fcd1f2e67a63ef2ad2"
Verified
Commit
fed0f017
authored
10 months ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
test: add factories for Category, Language, LinkType, MusicFocus, Topic and Owner
parent
ab1c1386
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
program/tests/factories.py
+35
-0
35 additions, 0 deletions
program/tests/factories.py
with
35 additions
and
0 deletions
program/tests/factories.py
+
35
−
0
View file @
fed0f017
...
@@ -7,15 +7,20 @@ from django.contrib.auth.models import Permission, User
...
@@ -7,15 +7,20 @@ from django.contrib.auth.models import Permission, User
from
django.db.models
import
QuerySet
from
django.db.models
import
QuerySet
from
django.utils.timezone
import
now
from
django.utils.timezone
import
now
from
program.models
import
(
from
program.models
import
(
Category
,
FundingCategory
,
FundingCategory
,
Host
,
Host
,
Image
,
Image
,
Language
,
License
,
License
,
LinkType
,
MusicFocus
,
Note
,
Note
,
RRule
,
RRule
,
Schedule
,
Schedule
,
Show
,
Show
,
TimeSlot
,
TimeSlot
,
Topic
,
Type
,
Type
,
)
)
...
@@ -117,3 +122,33 @@ class LicenseFactory(DjangoModelFactory):
...
@@ -117,3 +122,33 @@ class LicenseFactory(DjangoModelFactory):
class
NoteFactory
(
DjangoModelFactory
):
class
NoteFactory
(
DjangoModelFactory
):
class
Meta
:
class
Meta
:
model
=
Note
model
=
Note
class
CategoryFactory
(
DjangoModelFactory
):
class
Meta
:
model
=
Category
class
LanguageFactory
(
DjangoModelFactory
):
class
Meta
:
model
=
Language
class
LinkTypeFactory
(
DjangoModelFactory
):
class
Meta
:
model
=
LinkType
class
MusicFocusFactory
(
DjangoModelFactory
):
class
Meta
:
model
=
MusicFocus
class
TopicFactory
(
DjangoModelFactory
):
class
Meta
:
model
=
Topic
class
OwnerFactory
(
DjangoModelFactory
):
class
Meta
:
model
=
User
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