@@ -39,7 +39,8 @@ def test_verifier_with_provider_and_files(self, mock_path_exists, mock_wrapper):
3939 provider_base_url = 'http://localhost:8888' ,
4040 log_level = 'INFO' ,
4141 verbose = False ,
42- enable_pending = False )
42+ enable_pending = False ,
43+ include_wip_pacts_since = None )
4344
4445 def test_validate_on_publish_results (self ):
4546 self .assertRaises (Exception , self .verifier .verify_pacts , 'path/to/pact1' , publish = True )
@@ -58,7 +59,8 @@ def test_publish_on_success(self, mock_path_exists, mock_wrapper):
5859 log_level = 'INFO' ,
5960 verbose = False ,
6061 publish_version = '1.0.0' ,
61- enable_pending = False )
62+ enable_pending = False ,
63+ include_wip_pacts_since = None )
6264
6365 @patch ('pact.verifier.path_exists' , return_value = False )
6466 def test_raises_error_on_missing_pact_files (self , mock_path_exists ):
@@ -88,6 +90,14 @@ def test_passes_enable_pending_flag_value(self, mock_wrapper):
8890 mock_wrapper .call_args .kwargs ,
8991 )
9092
93+ @patch ('pact.verify_wrapper.VerifyWrapper.call_verify' , return_value = (0 , None ))
94+ @patch ('pact.verifier.path_exists' , return_value = True )
95+ def test_passes_include_wip_pacts_since_value (self , mock_path_exists , mock_wrapper ):
96+ self .verifier .verify_pacts ('any.json' , include_wip_pacts_since = '2018-01-01' )
97+ self .assertTrue (
98+ ('include_wip_pacts_since' , '2018-01-01' ) in mock_wrapper .call_args .kwargs .items (),
99+ mock_wrapper .call_args .kwargs ,
100+ )
91101
92102class VerifierBrokerTestCase (TestCase ):
93103
@@ -127,7 +137,8 @@ def test_verifier_with_broker(self, mock_wrapper):
127137 broker_url = self .broker_url ,
128138 log_level = 'INFO' ,
129139 verbose = False ,
130- enable_pending = False )
140+ enable_pending = False ,
141+ include_wip_pacts_since = None )
131142
132143 @patch ("pact.verify_wrapper.VerifyWrapper.call_verify" )
133144 @patch ('pact.verifier.path_exists' , return_value = True )
@@ -146,7 +157,8 @@ def test_publish_on_success(self, mock_path_exists, mock_wrapper):
146157 log_level = 'INFO' ,
147158 verbose = False ,
148159 publish_version = '1.0.0' ,
149- enable_pending = False )
160+ enable_pending = False ,
161+ include_wip_pacts_since = None )
150162
151163 @patch ('pact.verify_wrapper.VerifyWrapper.call_verify' , return_value = (0 , None ))
152164 def test_passes_enable_pending_flag_value (self , mock_wrapper ):
@@ -158,3 +170,12 @@ def test_passes_enable_pending_flag_value(self, mock_wrapper):
158170 ('enable_pending' , value ) in mock_wrapper .call_args .kwargs .items (),
159171 mock_wrapper .call_args .kwargs ,
160172 )
173+
174+ @patch ('pact.verify_wrapper.VerifyWrapper.call_verify' , return_value = (0 , None ))
175+ @patch ('pact.verifier.path_exists' , return_value = True )
176+ def test_passes_include_wip_pacts_since_value (self , mock_path_exists , mock_wrapper ):
177+ self .verifier .verify_with_broker (include_wip_pacts_since = '2018-01-01' )
178+ self .assertTrue (
179+ ('include_wip_pacts_since' , '2018-01-01' ) in mock_wrapper .call_args .kwargs .items (),
180+ mock_wrapper .call_args .kwargs ,
181+ )
0 commit comments