Skip to content

Commit

Permalink
chore: Split tests
Browse files Browse the repository at this point in the history
  • Loading branch information
last-partizan committed May 30, 2023
1 parent d5eefa8 commit ec69a82
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modeltranslation/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def test_constructor(self):
)
self._test_constructor(keywords)

def test_update_or_create(self):
def test_update_or_create_existing(self):
"""
Test that update_or_create works as expected
"""
Expand All @@ -486,6 +486,7 @@ def test_update_or_create(self):
assert instance.title_en == 'old en'
assert instance.title_de == 'NEW DE TITLE'

def test_update_or_create_new(self):
# Create new object
instance, created = models.TestModel.objects.update_or_create(
title_de='old de', title_en='old en'
Expand Down

0 comments on commit ec69a82

Please sign in to comment.