From c721c40ec7946da344cb3fe0a533633be821df7b Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Wed, 16 May 2018 13:23:49 +0100 Subject: [PATCH] Ignore temporary endpoint in navigation test --- tests/app/test_navigation.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/app/test_navigation.py b/tests/app/test_navigation.py index ec55dcef1..d83ea87a0 100644 --- a/tests/app/test_navigation.py +++ b/tests/app/test_navigation.py @@ -71,13 +71,14 @@ def test_excluded_navigation_items_are_properly_defined(navigation_instance): ]) def test_all_endpoints_are_covered(navigation_instance): for endpoint in all_endpoints: - assert endpoint in ( - navigation_instance.endpoints_with_navigation + - navigation_instance.endpoints_without_navigation - ), '{} is not listed or excluded in {}'.format( - endpoint, - type(navigation_instance).__name__ - ) + if not endpoint == 'main.ft_usage': + assert endpoint in ( + navigation_instance.endpoints_with_navigation + + navigation_instance.endpoints_without_navigation + ), '{} is not listed or excluded in {}'.format( + endpoint, + type(navigation_instance).__name__ + ) @pytest.mark.parametrize('navigation_instance', [