-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from vedro-universe/update-libs
update libs
- Loading branch information
Showing
10 changed files
with
271 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
baby-steps==1.2.3 | ||
baby-steps==1.3.0 | ||
bump2version==1.0.1 | ||
codecov==2.1.12 | ||
coverage==7.0.1 | ||
codecov==2.1.13 | ||
coverage==7.2.7 | ||
flake8==6.0.0 | ||
isort==5.11.4 | ||
mypy==0.991 | ||
pytest==7.2.0 | ||
pytest-asyncio==0.20.3 | ||
pytest-cov==4.0.0 | ||
isort==5.12.0 | ||
mypy==1.4.1 | ||
pytest==7.4.0 | ||
pytest-asyncio==0.21.1 | ||
pytest-cov==4.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
from baby_steps import given, then, when | ||
from pyparsing import ParseResults | ||
|
||
from vedro_advanced_tags._grammar import AndTag, NotTag, OrTag, TagExpr, TagOperand | ||
|
||
from ._utils import make_tag | ||
|
||
|
||
def test_tag_operand(): | ||
with given: | ||
tokens = ParseResults(["API"]) | ||
|
||
with when: | ||
tag_operand = TagOperand("...", 0, tokens) | ||
|
||
with then: | ||
assert isinstance(tag_operand, TagExpr) | ||
assert repr(tag_operand) == "Tag(API)" | ||
|
||
|
||
def test_and_operator(): | ||
with given: | ||
tokens = ParseResults([ | ||
[make_tag("API"), "and", make_tag("P0")] | ||
]) | ||
|
||
with when: | ||
and_operator = AndTag("...", 0, tokens) | ||
|
||
with then: | ||
assert isinstance(and_operator, TagExpr) | ||
assert repr(and_operator) == "AND(Tag(API), Tag(P0))" | ||
|
||
|
||
def test_or_operator(): | ||
with given: | ||
tokens = ParseResults([ | ||
[make_tag("API"), "or", make_tag("P0")] | ||
]) | ||
|
||
with when: | ||
or_operator = OrTag("...", 0, tokens) | ||
|
||
with then: | ||
assert isinstance(or_operator, TagExpr) | ||
assert repr(or_operator) == "OR(Tag(API), Tag(P0))" | ||
|
||
|
||
def test_not_operator(): | ||
with given: | ||
tokens = ParseResults([ | ||
["not", make_tag("API")] | ||
]) | ||
|
||
with when: | ||
not_operator = NotTag("...", 0, tokens) | ||
|
||
with then: | ||
assert isinstance(not_operator, TagExpr) | ||
assert repr(not_operator) == "NOT(Tag(API))" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.