Skip to content

Commit

Permalink
Fix merge between PRs
Browse files Browse the repository at this point in the history
- Fix merge between redhat-beyond#66 and redhat-beyond#72
  • Loading branch information
orzionpour committed Nov 26, 2021
1 parent 125582e commit 38b5b80
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions tasks/tests/test_tasks_filters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django.contrib.auth.models import User as DjangoUser
from django.db.models.query import QuerySet
import pytest
from tasks.models import Priority, Task, Status
Expand All @@ -14,15 +13,13 @@ class DBPrepare:
@staticmethod
def create_example_employee(username):
team = Team.objects.first()
django_user = DjangoUser.objects.create_user(username=username,
email="[email protected]",
password='xsdDS23',
first_name="Test",
last_name="Test")
employee = User.objects.create(user=django_user,
role=Role.EMPLOYEE,
team_id=team)
employee.save()
employee = User.create_user(username=username,
email="[email protected]",
password='xsdDS23',
first_name="Test",
last_name="Test",
role=Role.EMPLOYEE,
team=team)
return employee

"""
Expand All @@ -31,15 +28,13 @@ def create_example_employee(username):
@staticmethod
def create_example_manager(username):
team = Team.objects.first()
django_user = DjangoUser.objects.create_user(username=username,
email="[email protected]",
password='xsdDS23',
first_name="Test",
last_name="Test")
manager = User.objects.create(user=django_user,
role=Role.MANAGER,
team_id=team)
manager.save()
manager = User.create_user(username=username,
email="[email protected]",
password='xsdDS23',
first_name="Test",
last_name="Test",
role=Role.MANAGER,
team=team)
return manager

"""
Expand All @@ -48,7 +43,6 @@ def create_example_manager(username):
@staticmethod
def create_example_team():
team = Team.objects.create(name="TestTeam", description="Test Team")
team.save()
return team

"""
Expand All @@ -65,7 +59,6 @@ def create_example_task(assignee, assigner, priority, status):
status=status,
priority=priority,
description=description)
task.save()
return task


Expand Down

0 comments on commit 38b5b80

Please sign in to comment.