File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 7
7
from tagging .managers import CustomTaggableManager
8
8
from tagging .models import CustomTag , TaggedItems
9
9
10
+
10
11
def get_sentinel_user ():
11
12
return get_user_model ().objects .get_or_create (username = 'deleted' )[0 ]
12
13
Original file line number Diff line number Diff line change 1
- from django .test import TestCase
1
+ import pytest
2
+ from .factories import OSProjectsFactory
2
3
3
- # Create your tests here.
4
+
5
+ @pytest .mark .django_db
6
+ def test_osprojects_model ():
7
+ """ Test OSProjects model """
8
+ # create OSProjects model instance
9
+ osproject = OSProjectsFactory (title = "Buddybot" , guid = "cc63f918-d515-11ea-956f-0242ac130002" )
10
+ assert osproject .title == "Buddybot"
11
+ assert osproject .guid == "cc63f918-d515-11ea-956f-0242ac130002"
You can’t perform that action at this time.
0 commit comments