forked from pool/python-proselint
Accepting request 674778 from home:jayvdb:coala:python3-bears
- Fix invocation of test suite to run the tests - Add Recommends for python2-gdbm, and BuildRequires to activate the tests related to gdbm - Add disable-empty-test.patch to remove unused test module - Update from v0.8.0 to v0.10.2 OBS-URL: https://build.opensuse.org/request/show/674778 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proselint?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
91be42bcc8
commit
5d0a78e4d7
31
disable-empty-test.patch
Normal file
31
disable-empty-test.patch
Normal file
@@ -0,0 +1,31 @@
|
||||
diff --git a/tests/test_weasel_words_misc.py b/tests/test_weasel_words_misc.py
|
||||
deleted file mode 100644
|
||||
index 3f93e8f..0000000
|
||||
--- a/tests/test_weasel_words_misc.py
|
||||
+++ /dev/null
|
||||
@@ -1,25 +0,0 @@
|
||||
-"""Tests for weasel_words.misc check."""
|
||||
-from __future__ import absolute_import
|
||||
-
|
||||
-from .check import Check
|
||||
-
|
||||
-from proselint.checks.weasel_words import misc as chk
|
||||
-from nose import SkipTest
|
||||
-
|
||||
-
|
||||
-class TestCheck(Check):
|
||||
- """The test class for weasel_words.misc."""
|
||||
-
|
||||
- raise SkipTest
|
||||
-
|
||||
- __test__ = True
|
||||
-
|
||||
- @property
|
||||
- def this_check(self):
|
||||
- """Boilerplate."""
|
||||
- return chk
|
||||
-
|
||||
- def test_smoke(self):
|
||||
- """Basic smoke test for weasel_words.misc."""
|
||||
- assert self.passes("""Smoke phrase with nothing flagged.""")
|
||||
- # FIXME add test when check is implemented
|
Reference in New Issue
Block a user