Skip to content

Commit

Permalink
Updated test forms with vacancy field
Browse files Browse the repository at this point in the history
manjurulhoque committed Oct 10, 2024
1 parent 1efb01a commit f29dceb
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions tests/jobsapp/test_forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from datetime import datetime, timedelta
from http import HTTPStatus
from datetime import timedelta

from django.test import TestCase
from django.utils import timezone

from accounts.models import User
from jobsapp.forms import CreateJobForm
@@ -13,11 +14,12 @@ def setUp(self) -> None:
self.valid_job = {
"title": "Junior Software Engineer",
"description": "Looking for Python developer",
"vacancy": 2,
"salary": 35000,
"location": "Dhaka, Bangladesh",
"type": "1",
"category": "web-development",
"last_date": datetime.now() + timedelta(days=30),
"last_date": timezone.now() + timedelta(days=30),
"company_name": "Dev Soft",
"company_description": "A foreign country",
"website": "www.devsoft.com",
6 changes: 3 additions & 3 deletions tests/jobsapp/test_models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime, timedelta
from datetime import timedelta

from django.test import TestCase
from django.utils import translation
from django.utils import translation, timezone

from accounts.models import User
from jobsapp.models import Applicant, Job
@@ -20,7 +20,7 @@ def setUpTestData(cls) -> None:
"location": "Dhaka, Bangladesh",
"type": "1",
"category": "web-development",
"last_date": datetime.now() + timedelta(days=30),
"last_date": timezone.now() + timedelta(days=30),
"company_name": "Dev Soft",
"company_description": "A foreign country",
"website": "www.devsoft.com",

0 comments on commit f29dceb

Please sign in to comment.