Skip to content

Commit

Permalink
updated tests based on lgbtq checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Grant committed Jul 18, 2016
1 parent ad62558 commit 0bc5d6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""Test GLAAD Guidelines."""
"""Tests for lgbtq.terms check."""
from __future__ import absolute_import

from .check import Check

from proselint.checks.glaad import offensive_terms as chk
from proselint.checks.lgbtq import offensive_terms as chk


class TestCheck(Check):
"""The test class for glaad.offensive_terms."""
"""The test class for lgbtq.offensive_terms."""

__test__ = True

Expand All @@ -17,7 +17,7 @@ def this_check(self):
return chk

def test_smoke(self):
"""Basic smoke test for glaad.offensive_terms."""
"""Basic smoke test for lgbtq.offensive_terms."""
assert self.passes("""Smoke phrase with nothing flagged.""")
assert self.passes("""I once met a gay man.""")
assert not self.passes("""I once met a fag.""")
8 changes: 4 additions & 4 deletions tests/test_glaad_terms.py → tests/test_lgbtq_terms.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""Test GLAAD Guidelines."""
"""Tests for lgbtq.offensive_terms check."""
from __future__ import absolute_import

from .check import Check

from proselint.checks.glaad import terms as chk
from proselint.checks.lgbtq import terms as chk


class TestCheck(Check):
"""The test class for glaad.terms."""
"""The test class for lgbtq.terms."""

__test__ = True

Expand All @@ -17,7 +17,7 @@ def this_check(self):
return chk

def test_smoke(self):
"""Basic smoke test for glaad.terms."""
"""Basic smoke test for lgbtq.terms."""
assert self.passes("""Smoke phrase with nothing flagged.""")
assert self.passes("""They were a gay couple.""")
assert not self.passes("""He was a homosexual man.""")
Expand Down

0 comments on commit 0bc5d6a

Please sign in to comment.