@@ -63,7 +63,7 @@ def api_client():
6363
6464@pytest .fixture
6565def tr_plugin (api_client ):
66- return PyTestRailPlugin (api_client , ASSIGN_USER_ID , PROJECT_ID , SUITE_ID , True , TR_NAME , version = '1.0.0.0' )
66+ return PyTestRailPlugin (api_client , ASSIGN_USER_ID , PROJECT_ID , SUITE_ID , False , True , TR_NAME , version = '1.0.0.0' )
6767
6868
6969@pytest .fixture
@@ -211,18 +211,19 @@ def test_pytest_sessionfinish_testplan(api_client, tr_plugin):
211211 expected_data_5678 , cert_check = True )
212212
213213
214- def test_create_test_run (api_client , tr_plugin ):
214+ @pytest .mark .parametrize ('include_all' , [True , False ])
215+ def test_create_test_run (api_client , tr_plugin , include_all ):
215216 expected_tr_keys = [3453 , 234234 , 12 ]
216217 expect_name = 'testrun_name'
217218
218- tr_plugin .create_test_run (ASSIGN_USER_ID , PROJECT_ID , SUITE_ID , expect_name , expected_tr_keys )
219+ tr_plugin .create_test_run (ASSIGN_USER_ID , PROJECT_ID , SUITE_ID , include_all , expect_name , expected_tr_keys )
219220
220221 expected_uri = plugin .ADD_TESTRUN_URL .format (PROJECT_ID )
221222 expected_data = {
222223 'suite_id' : SUITE_ID ,
223224 'name' : expect_name ,
224225 'assignedto_id' : ASSIGN_USER_ID ,
225- 'include_all' : False ,
226+ 'include_all' : include_all ,
226227 'case_ids' : expected_tr_keys
227228 }
228229 check_cert = True
@@ -296,7 +297,7 @@ def test_close_test_plan(api_client, tr_plugin):
296297
297298def test_dont_publish_blocked (api_client ):
298299 """ Case: one test is blocked"""
299- my_plugin = PyTestRailPlugin (api_client , ASSIGN_USER_ID , PROJECT_ID , SUITE_ID , True , TR_NAME ,
300+ my_plugin = PyTestRailPlugin (api_client , ASSIGN_USER_ID , PROJECT_ID , SUITE_ID , False , True , TR_NAME ,
300301 version = '1.0.0.0' ,
301302 publish_blocked = False
302303 )
@@ -324,7 +325,7 @@ def test_dont_publish_blocked(api_client):
324325
325326def test_skip_missing_only_one_test (api_client , pytest_test_items ):
326327 my_plugin = PyTestRailPlugin (api_client , ASSIGN_USER_ID , PROJECT_ID ,
327- SUITE_ID , True , TR_NAME ,
328+ SUITE_ID , False , True , TR_NAME ,
328329 run_id = 10 ,
329330 version = '1.0.0.0' ,
330331 publish_blocked = False ,
@@ -343,7 +344,7 @@ def test_skip_missing_only_one_test(api_client, pytest_test_items):
343344
344345def test_skip_missing_correlation_tests (api_client , pytest_test_items ):
345346 my_plugin = PyTestRailPlugin (api_client , ASSIGN_USER_ID , PROJECT_ID ,
346- SUITE_ID , True , TR_NAME ,
347+ SUITE_ID , False , True , TR_NAME ,
347348 run_id = 10 ,
348349 version = '1.0.0.0' ,
349350 publish_blocked = False ,
0 commit comments