Skip to content

Commit

Permalink
Exclude admin.py modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristgit committed Sep 23, 2018
1 parent 34f954a commit 13eeb4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ source =
wiki

omit =
*/admin.py
*/apps.py
pysite/wsgi.py
pysite/settings.py
4 changes: 4 additions & 0 deletions api/tests/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@


class TagEmbedValidatorTests(TestCase):
def test_rejects_non_mapping(self):
with self.assertRaises(ValidationError):
validate_tag_embed('non-empty non-mapping')

def test_rejects_missing_required_keys(self):
with self.assertRaises(ValidationError):
validate_tag_embed({
Expand Down

0 comments on commit 13eeb4c

Please sign in to comment.