Segregation of Dev and Prod envs (#218)

Segregation of Dev and Prod envs, addition of tests

Co-authored-by: Markos Gogoulos <mgogoulos@gmail.com>
Co-authored-by: Ubuntu <shubhank@my-hostings.nxfutj5b2tlubjykddwgszqteb.bx.internal.cloudapp.net>
This commit is contained in:
Shubhank Saxena
2021-07-01 20:35:43 +05:30
committed by GitHub
parent d17b3b4153
commit c28a39fa47
12 changed files with 171 additions and 42 deletions

15
tests/users/factories.py Normal file
View File

@@ -0,0 +1,15 @@
import factory
from django.conf import settings
from faker import Faker
fake = Faker()
User = settings.AUTH_USER_MODEL
class UserFactory(factory.django.DjangoModelFactory):
class Meta:
model = User
description = fake.paragraph(nb_sentences=4)
name = fake.name()
is_editor = True

View File

@@ -0,0 +1,4 @@
def test_new_user(user_factory):
print(user_factory.name)
print(user_factory.description)
assert True