Skip to content
Snippets Groups Projects

Added stricter controls over the returned values by the datasource.

Merged Adham Hashibon requested to merge enforce-error-message-for-incorrect-return-values into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -88,7 +88,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
self,
RuntimeError,
"The run method of data source test_data_source must"
" return a list. It returned instead <type 'str'>. Fix"
" return a list. It returned instead <.* 'str'>. Fix"
" the run\(\) method to return the appropriate entity."):
driver.application_started()
@@ -104,7 +104,7 @@ class TestCoreEvaluationDriver(unittest.TestCase):
RuntimeError,
"The result list returned by DataSource test_data_source"
" contains an entry that is not a DataValue."
" An entry of type <type 'str'> was instead found"
" An entry of type <.* 'str'> was instead found"
" in position 0."
" Fix the DataSource.run\(\) method to"
" return the appropriate entity."
Loading