Skip to content

Commit 2726df4

Browse files
committed
Make test more robust
1 parent bd7fa2a commit 2726df4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

readthedocs/rtd_tests/tests/test_project_forms.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,12 @@ def test_import_repo_url(self):
9696
def test_empty_slug(self):
9797
initial = {
9898
'name': "''",
99+
'repo_type': 'git',
100+
'repo': 'https://github.com/user/repository',
99101
}
100102
form = ProjectBasicsForm(initial)
101103
self.assertFalse(form.is_valid())
104+
self.assertIn('name', form.errors)
102105

103106

104107
class TestTranslationForms(TestCase):

0 commit comments

Comments
 (0)