From d0e451d06746ba7daa997676edddbe52d6aeeb5b Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 10 Jan 2019 11:09:55 +0100 Subject: [PATCH] small addition to test_teams --- rowers/tests/test_teams.py | 4 ++++ rowers/tests/testdata/testdata.csv.gz | Bin 11426 -> 11426 bytes rowers/tests/testdata/testdata.tcx | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rowers/tests/test_teams.py b/rowers/tests/test_teams.py index e2d85eb4..a0fcf2bc 100644 --- a/rowers/tests/test_teams.py +++ b/rowers/tests/test_teams.py @@ -161,6 +161,10 @@ class TeamCreateFactory(TestCase): id, comment = create_team(faker.word(), self.u) self.assertEqual(id,2) + id, comment = create_team(self.t.name,self.u) + self.assertEqual(id,0) + self.assertEqual(comment,'Team name duplication') + def test_lowlevel_remove_team(self): team = TeamFactory(manager=self.u) tid = team.id diff --git a/rowers/tests/testdata/testdata.csv.gz b/rowers/tests/testdata/testdata.csv.gz index 99d095f7256c09ee5dbe645ce0aabebac312a385..c57e749bdbcfdbafc4da9b88b7d7cc4b309731f8 100644 GIT binary patch delta 15 WcmZ1!xhRrNzMF%iR&pcT9322DNd(LQ delta 15 WcmZ1!xhRrNzMF$%AKyl{IXVC;m<0j= diff --git a/rowers/tests/testdata/testdata.tcx b/rowers/tests/testdata/testdata.tcx index 09ed4f12..d9f904e1 100644 --- a/rowers/tests/testdata/testdata.tcx +++ b/rowers/tests/testdata/testdata.tcx @@ -2502,7 +2502,7 @@ - <Element 'Notes' at 0x1388e7b8> + <Element 'Notes' at 0x14a7a278>