Skip to content

Commit

Permalink
now with the correct? requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Dec 19, 2023
1 parent c122288 commit c4828e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ jobs:
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
- name: Install dependencies
run: |
pip install --upgrade --upgrade-strategy eager -r requirements.txt
pip install --upgrade --upgrade-strategy eager -r requirements_dev.txt
- name: Run migrations
run: |
export NEW_PMB=TRUE
python manage.py migrate
unset NEW_PMB
- name: Run tests
run: coverage run manage.py test
run: coverage run manage.py test -v 3
- name: Create Coverage Report
run: coverage xml
- name: "Upload coverage to Codecov"
Expand Down
7 changes: 7 additions & 0 deletions apis_core/apis_entities/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ def test_001_person_list_view(self):
def test_002_check_fixtures(self):
items = Person.objects.all().count()
self.assertEqual(items, 2)

def test_003_create_person(self):
item, created = Person.objects.get_or_create(
**{"name": "Bahr", "first_name": "Hermann", "start_date_written": "1900"}
)
self.assertTrue(created)
self.assertEqual(item.name, "Bahr")

0 comments on commit c4828e0

Please sign in to comment.