Visual-Regression-Tracker / sdk-python

Apache License 2.0
4 stars 4 forks source link

12 Add support for ignoreAreas #13

Closed dcrowe closed 4 years ago

dcrowe commented 4 years ago

Resolves #12

pashidlos commented 4 years ago

@dcrowe I faced an issue when server response has diffName as None added test case for it, but I'm not able to fix it :(

Traceback (most recent call last):
  File "example.py", line 21, in <module>
    vrt.track(TestRun(
  File "/Users/pashidlos/work/vrt/sdk-python/visual_regression_tracker/visualRegressionTracker.py", line 91, in track
    result = self._submitTestResult(test)
  File "/Users/pashidlos/work/vrt/sdk-python/visual_regression_tracker/visualRegressionTracker.py", line 86, in _submitTestResult
    testRunResult = _from_dict(result, TestRunResponse)
  File "/Users/pashidlos/work/vrt/sdk-python/visual_regression_tracker/types.py", line 91, in _from_dict
    obj = dacite.from_dict(clazz, data)
  File "/Users/pashidlos/.conda/envs/sdk-python/lib/python3.8/site-packages/dacite/core.py", line 65, in from_dict
    raise WrongTypeError(field_path=field.name, field_type=field.type, value=value)
dacite.exceptions.WrongTypeError: wrong value type for field "diffName" - should be "str" instead of value "None" of type "NoneType"
pashidlos commented 4 years ago

works as expected! @dcrowe thank you for support!

pashidlos commented 4 years ago

https://twitter.com/VisualReTracker/status/1326073973742964738