1515
1616
1717class OneLogin_Saml2_Settings_Test (unittest .TestCase ):
18- data_path = join (dirname (__file__ ), '..' , '..' , '..' , 'data' )
19- settings_path = join (dirname (__file__ ), '..' , '..' , '..' , 'settings' )
18+ data_path = join (dirname (dirname ( dirname ( dirname ( __file__ )))) , 'data' )
19+ settings_path = join (dirname (dirname ( dirname ( dirname ( __file__ )))) , 'settings' )
2020
2121 def loadSettingsJSON (self ):
2222 filename = join (self .settings_path , 'settings1.json' )
@@ -121,7 +121,7 @@ def testLoadSettingsFromFile(self):
121121 Tests the OneLogin_Saml2_Settings Constructor.
122122 Case load setting from file
123123 """
124- custom_base_path = join (dirname (__file__ ), '..' , '..' , '..' , 'settings' )
124+ custom_base_path = join (dirname (dirname ( dirname ( dirname ( __file__ )))) , 'settings' )
125125 settings = OneLogin_Saml2_Settings (custom_base_path = custom_base_path )
126126 self .assertEqual (len (settings .get_errors ()), 0 )
127127
@@ -131,7 +131,7 @@ def testLoadSettingsFromFile(self):
131131 except Exception as e :
132132 self .assertIn ('Settings file not found' , e .message )
133133
134- custom_base_path = join (dirname (__file__ ), '..' , '..' , '..' , 'data' , 'customPath' )
134+ custom_base_path = join (dirname (dirname ( dirname ( dirname ( __file__ )))) , 'data' , 'customPath' )
135135 settings_3 = OneLogin_Saml2_Settings (custom_base_path = custom_base_path )
136136 self .assertEqual (len (settings_3 .get_errors ()), 0 )
137137
0 commit comments