Skip to content

Commit

Permalink
Fixing plugin tests w/ description addition.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Sep 20, 2020
1 parent 50facf3 commit 4ff4431
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,15 @@ def test_available_plugins(self):

# THEN
self.assertEqual(result.exit_code, 0)
self.assertIn(
""" * blueprint_default
* custom_plugin
* request_body
* request_files
* request_headers
* request_query_params
* request_url_info
* response_echo
* response_info""",
result.output)
self.assertIn(" * blueprint_default", result.output)
self.assertIn(" * custom_plugin", result.output)
self.assertIn(" * request_body", result.output)
self.assertIn(" * request_files", result.output)
self.assertIn(" * request_headers", result.output)
self.assertIn(" * request_query_params", result.output)
self.assertIn(" * request_url_info", result.output)
self.assertIn(" * response_echo", result.output)
self.assertIn(" * response_info", result.output)

def test_enabled_plugins(self):
# GIVEN
Expand All @@ -62,14 +60,12 @@ def test_enabled_plugins(self):

# THEN
self.assertEqual(result.exit_code, 0)
self.assertIn(
""" * blueprint_default
* request_url_info
* request_headers
* request_body
* response_echo
* response_info""",
result.output)
self.assertIn(" * blueprint_default", result.output)
self.assertIn(" * request_url_info", result.output)
self.assertIn(" * request_headers", result.output)
self.assertIn(" * request_body", result.output)
self.assertIn(" * response_echo", result.output)
self.assertIn(" * response_info", result.output)

def test_enable_plugin(self):
# WHEN
Expand Down

0 comments on commit 4ff4431

Please sign in to comment.