Commit 60ebe21b authored by Ola Hermann Opheim's avatar Ola Hermann Opheim
Browse files

draft refac user tests

parent 7204f563
......@@ -42,20 +42,22 @@ def create_multiple_test_data():
password='top_secret'
)
test_category = ProjectCategory.objects.create(name='Category')
test_category_1 = ProjectCategory.objects.create(name='Category1')
test_category_2 = ProjectCategory.objects.create(name='Category2')
test_category_3 = ProjectCategory.objects.create(name='Category3')
test_project_1 = Project.objects.create(
user=test_user_1.profile,
title="Project1",
description='',
category=test_category,
category=test_category_1,
status='o'
)
test_project_2 = Project.objects.create(
user=test_user_2.profile,
title="Project2",
description='',
category=test_category,
category=test_category_2,
status='o'
)
......
......@@ -14,7 +14,6 @@ class Profile(models.Model):
street_address = models.TextField(max_length=50, blank=True)
categories = models.ManyToManyField('projects.ProjectCategory', related_name='competance_categories')
def __str__(self):
return self.user.username
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment