@@ -67,8 +67,8 @@ def test_200_prepare_android_initial(self, template, template_package, change_se
67
67
@parameterized .expand (TEST_DATA )
68
68
@unittest .skipIf (Settings .HOST_OS != OSType .OSX , 'iOS tests can be executed only on macOS.' )
69
69
def test_201_prepare_ios_initial (self , template , template_package , change_set , bundle ):
70
- actual = Helpers .get_actual_result (template , Platform .iOS , bundle , 'prepare_initial' )
71
- expected = Helpers .get_expected_result (template , Platform .iOS , bundle , 'prepare_initial' )
70
+ actual = Helpers .get_actual_result (template , Platform .IOS , bundle , 'prepare_initial' )
71
+ expected = Helpers .get_expected_result (template , Platform .IOS , bundle , 'prepare_initial' )
72
72
assert PerfUtils .is_value_in_range (actual , expected , TOLERANCE ), 'Initial ios prepare time is not OK.'
73
73
74
74
@parameterized .expand (TEST_DATA )
@@ -80,8 +80,8 @@ def test_210_prepare_android_skip(self, template, template_package, change_set,
80
80
@parameterized .expand (TEST_DATA )
81
81
@unittest .skipIf (Settings .HOST_OS != OSType .OSX , 'iOS tests can be executed only on macOS.' )
82
82
def test_211_prepare_ios_skip (self , template , template_package , change_set , bundle ):
83
- actual = Helpers .get_actual_result (template , Platform .iOS , bundle , 'prepare_skip' )
84
- expected = Helpers .get_expected_result (template , Platform .iOS , bundle , 'prepare_skip' )
83
+ actual = Helpers .get_actual_result (template , Platform .IOS , bundle , 'prepare_skip' )
84
+ expected = Helpers .get_expected_result (template , Platform .IOS , bundle , 'prepare_skip' )
85
85
assert PerfUtils .is_value_in_range (actual , expected , TOLERANCE ), 'Skip ios prepare time is not OK.'
86
86
87
87
@parameterized .expand (TEST_DATA )
@@ -93,8 +93,8 @@ def test_220_prepare_android_incremental(self, template, template_package, chang
93
93
@parameterized .expand (TEST_DATA )
94
94
@unittest .skipIf (Settings .HOST_OS != OSType .OSX , 'iOS tests can be executed only on macOS.' )
95
95
def test_221_prepare_ios_incremental (self , template , template_package , change_set , bundle ):
96
- actual = Helpers .get_actual_result (template , Platform .iOS , bundle , 'prepare_incremental' )
97
- expected = Helpers .get_expected_result (template , Platform .iOS , bundle , 'prepare_incremental' )
96
+ actual = Helpers .get_actual_result (template , Platform .IOS , bundle , 'prepare_incremental' )
97
+ expected = Helpers .get_expected_result (template , Platform .IOS , bundle , 'prepare_incremental' )
98
98
assert PerfUtils .is_value_in_range (actual , expected , TOLERANCE ), 'Incremental ios prepare time is not OK.'
99
99
100
100
@parameterized .expand (TEST_DATA )
@@ -106,8 +106,8 @@ def test_300_build_android_initial(self, template, template_package, change_set,
106
106
@parameterized .expand (TEST_DATA )
107
107
@unittest .skipIf (Settings .HOST_OS != OSType .OSX , 'iOS tests can be executed only on macOS.' )
108
108
def test_301_build_ios_initial (self , template , template_package , change_set , bundle ):
109
- actual = Helpers .get_actual_result (template , Platform .iOS , bundle , 'build_initial' )
110
- expected = Helpers .get_expected_result (template , Platform .iOS , bundle , 'build_initial' )
109
+ actual = Helpers .get_actual_result (template , Platform .IOS , bundle , 'build_initial' )
110
+ expected = Helpers .get_expected_result (template , Platform .IOS , bundle , 'build_initial' )
111
111
assert PerfUtils .is_value_in_range (actual , expected , TOLERANCE ), 'Initial ios build time is not OK.'
112
112
113
113
@parameterized .expand (TEST_DATA )
@@ -119,8 +119,8 @@ def test_310_build_android_incremental(self, template, template_package, change_
119
119
@parameterized .expand (TEST_DATA )
120
120
@unittest .skipIf (Settings .HOST_OS != OSType .OSX , 'iOS tests can be executed only on macOS.' )
121
121
def test_311_build_ios_incremental (self , template , template_package , change_set , bundle ):
122
- actual = Helpers .get_actual_result (template , Platform .iOS , bundle , 'build_incremental' )
123
- expected = Helpers .get_expected_result (template , Platform .iOS , bundle , 'build_incremental' )
122
+ actual = Helpers .get_actual_result (template , Platform .IOS , bundle , 'build_incremental' )
123
+ expected = Helpers .get_expected_result (template , Platform .IOS , bundle , 'build_incremental' )
124
124
assert PerfUtils .is_value_in_range (actual , expected , TOLERANCE ), 'Incremental ios build time is not OK.'
125
125
126
126
@@ -197,6 +197,7 @@ def get_actual_result(template, platform, bundle, entry):
197
197
198
198
@staticmethod
199
199
def get_expected_result (template , platform , bundle , entry ):
200
+ platform = str (platform )
200
201
if bundle :
201
- platform = str ( platform ) + '_bundle'
202
+ platform = platform + '_bundle'
202
203
return EXPECTED_RESULTS [template ][platform ][entry ]
0 commit comments