Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

46 #80

Merged
merged 6 commits into from
Feb 12, 2022
Merged

46 #80

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test_alert.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @todo #/DEV Create fake grafana alert event object based on
# https://grafana.com/docs/grafana/latest/alerting/unified-alerting/contact-points/#webhook # noqa: E501

class SimpleTest(unittest.TestCase):
class AlertTest(unittest.TestCase):

def test_comment(self):
self.assertGreater(Alert().desc('{"user":"Tom"}').find("user%22%3A%22Tom"), 0)
2 changes: 1 addition & 1 deletion tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# - https://setuptools.pypa.io/en/latest/pkg_resources.html


class SimpleTest(unittest.TestCase):
class ClientTest(unittest.TestCase):

@pytest.mark.skipif(os.getenv("WS_ADMIN_EMAIL") is None, reason="Environment variable 'WS_ADMIN_EMAIL' is absent")
@pytest.mark.skipif(os.getenv("WS_URL_ALL_USERS") is None, reason="Environment variable 'WS_URL_ALL_USERS' is absent")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def test_commit_regexp_matched_at_middle():
# https://understandingdata.com/list-of-python-assert-statements-for-unit-tests # noqa: E501


class SimpleTest(unittest.TestCase):
class PushTest(unittest.TestCase):

def test_ctor(self):
self.assertEqual(fake_push_event.ref, "refs/heads/master")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Right now this @pytest.mark.skipif looks too verbose.


class SimpleTest(unittest.TestCase):
class UsersAndCommentTest(unittest.TestCase):

@pytest.mark.skipif(os.getenv("WS_INT_TESTS_DISABLED") is not None, reason="Integration tests are disabled")
@pytest.mark.skipif(os.getenv("WS_URL_ALL_USERS") is None, reason="Environment variable 'WS_URL_ALL_USERS' is absent")
Expand Down