labd / commercetools-python-sdk

Commercetools Python SDK
https://commercetools-python-sdk.readthedocs.io/en/latest/
MIT License
17 stars 16 forks source link

Implement predicate filter for testing purposes #24

Closed mvantellingen closed 5 years ago

mvantellingen commented 5 years ago

This uses a PRATT parser algorithm for parsing the dsl. Still under development but this should already support most predicates

codecov[bot] commented 5 years ago

Codecov Report

Merging #24 into master will increase coverage by 0.46%. The diff coverage is 88.06%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
+ Coverage   71.96%   72.42%   +0.46%     
==========================================
  Files          55       57       +2     
  Lines       19256    19565     +309     
==========================================
+ Hits        13857    14170     +313     
+ Misses       5399     5395       -4
Impacted Files Coverage Δ
tests/test_testing_predicates.py 100% <100%> (ø)
src/commercetools/testing/__init__.py 95.55% <100%> (+0.1%) :arrow_up:
tests/test_service_products.py 100% <100%> (ø) :arrow_up:
src/commercetools/testing/abstract.py 95.14% <100%> (+1.14%) :arrow_up:
src/commercetools/testing/predicates.py 87.06% <87.06%> (ø)
src/commercetools/schemas.py 79.5% <0%> (+0.05%) :arrow_up:
src/commercetools/types.py 64.3% <0%> (+0.35%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c41161b...56bc462. Read the comment docs.