11import os
22from .selenium_generic import SeleniumGenericTests
3- from .selenium_cases import (
4- API_V2 ,
5- TESTS ,
6- )
3+ from .selenium_cases import TESTS
4+ from apps .constants import Versions
75
86
97USE_NEW_PERM_SCREEN = os .environ ['USE_NEW_PERM_SCREEN' ]
@@ -17,7 +15,7 @@ class TestBlueButtonAPI(SeleniumGenericTests):
1715 def test_auth_grant_pkce_fhir_calls_v2 (self ):
1816 step = [0 ]
1917 test_name = "auth_grant_pkce_fhir_calls"
20- api_ver = API_V2
18+ api_ver = Versions . V2
2119 self ._print_testcase_banner (test_name , api_ver , step [0 ], self .use_mslsx , True )
2220 self ._play (TESTS [test_name ], step , api_ver = api_ver )
2321 self ._testclient_home ()
@@ -26,7 +24,7 @@ def test_auth_grant_pkce_fhir_calls_v2(self):
2624 def test_auth_deny_fhir_calls_v2 (self ):
2725 step = [0 ]
2826 test_name = "auth_deny_fhir_calls"
29- api_ver = API_V2
27+ api_ver = Versions . V2
3028 self ._print_testcase_banner (test_name , api_ver , step [0 ], self .use_mslsx , True )
3129 self ._play (TESTS [test_name ], step , api_ver = api_ver )
3230 self ._print_testcase_banner (test_name , api_ver , step [0 ], self .use_mslsx , False )
@@ -37,7 +35,7 @@ def test_auth_grant_w_no_demo_v2(self):
3735 test_name = "auth_grant_w_no_demo_new_perm_screen"
3836 else :
3937 test_name = "auth_grant_w_no_demo"
40- api_ver = API_V2
38+ api_ver = Versions . V2
4139 self ._print_testcase_banner (test_name , api_ver , step [0 ], self .use_mslsx , True )
4240 self ._play (TESTS [test_name ], step , api_ver = api_ver )
4341 self ._testclient_home ()
@@ -51,7 +49,7 @@ def test_auth_grant_w_no_demo_v2(self):
5149 def test_authorize_lang_english_button (self ):
5250 step = [0 ]
5351 test_name = "authorize_lang_english_button"
54- api_ver = API_V2
52+ api_ver = Versions . V2
5553 self ._print_testcase_banner (test_name , api_ver , step [0 ], self .use_mslsx , True )
5654 if USE_NEW_PERM_SCREEN == "true" :
5755 # the validation of expire date etc. only applicable to new perm screen
@@ -68,7 +66,7 @@ def test_authorize_lang_english_button(self):
6866 def test_v2_authorization_and_scopes (self ):
6967 step = [0 ]
7068 test_name = "authorize_get_v2_scopes"
71- api_ver = API_V2
69+ api_ver = Versions . V2
7270 self ._print_testcase_banner (test_name , api_ver , step [0 ], self .use_mslsx , True )
7371
7472 self ._play (TESTS [test_name ], step , api_ver = api_ver )
0 commit comments