Skip to content

Commit

Permalink
docs(features): wip
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Mar 29, 2023
1 parent 9a12d4a commit 20cef7d
Show file tree
Hide file tree
Showing 17 changed files with 4,713 additions and 14 deletions.
221 changes: 221 additions & 0 deletions Features.md

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import pytest


@pytest.hookimpl(tryfirst=True, hookwrapper=True)
def pytest_runtest_makereport(item, call):
# execute all other hooks to obtain the report object
outcome = yield
rep = outcome.get_result()

# set a report attribute for each phase of a call, which can
# be "setup", "call", "teardown"

setattr(item, "rep_" + rep.when, rep)
343 changes: 343 additions & 0 deletions tests/features/2.7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,343 @@
[
[
"test_binary_operators",
[
[
"+",
true
],
[
"-",
true
],
[
"/",
true
],
[
"//",
true
],
[
"*",
true
],
[
"%",
true
],
[
"**",
true
],
[
"<<",
true
],
[
">>",
true
],
[
"\\|",
true
],
[
"&",
true
],
[
"^",
true
]
]
],
[
"test_call",
[
[
"call",
true
]
]
],
[
"test_compare_ops",
[
[
"<",
true
],
[
"<=",
true
],
[
">",
true
],
[
">=",
true
],
[
"!=",
true
],
[
"==",
true
],
[
"in",
true
],
[
"not in",
true
],
[
"assert 5<t,\"msg\"",
false
],
[
"assert 5<t",
false
],
[
"if 5<t:",
true
],
[
"5<t<6",
false
],
[
"assert 5<t<6",
false
],
[
"if 5<t<6:",
false
],
[
"if 5<t<6 or 8<t<9:",
false
]
]
],
[
"test_delattr",
[
[
"del obj.attr",
false
],
[
"delattr(obj,\"attr\")",
true
]
]
],
[
"test_delitem",
[
[
"del obj[index]",
false
],
[
"del obj[start:end]",
false
]
]
],
[
"test_format_string",
[]
],
[
"test_getattr",
[
[
"obj.attr",
true
],
[
"getattr(obj,\"attr\")",
true
]
]
],
[
"test_getitem",
[
[
"obj[index]",
true
],
[
"obj[start:end]",
true
]
]
],
[
"test_inplace_binary_operators",
[
[
"+=",
false
],
[
"-=",
false
],
[
"/=",
false
],
[
"//=",
false
],
[
"*=",
false
],
[
"%=",
false
],
[
"**=",
false
],
[
"<<=",
false
],
[
">>=",
false
],
[
"\\|=",
false
],
[
"&=",
false
],
[
"^=",
false
]
]
],
[
"test_known_issues",
[
[
"same generator",
true
]
]
],
[
"test_reverse_binary_operators",
[
[
"+",
true
],
[
"-",
true
],
[
"/",
true
],
[
"//",
true
],
[
"*",
true
],
[
"%",
true
],
[
"**",
true
],
[
"<<",
true
],
[
">>",
true
],
[
"\\|",
true
],
[
"&",
true
],
[
"^",
true
]
]
],
[
"test_setattr",
[
[
"t.attr = 5",
true
],
[
"t.attr, g.attr= 5, 5",
true
],
[
"setattr(t,\"attr\",5)",
true
]
]
],
[
"test_setitem",
[
[
"obj[index]=value",
true
],
[
"obj[start:end]=value",
true
]
]
],
[
"test_with",
[
[
"__enter__",
false
],
[
"__exit__",
false
]
]
]
]
Loading

0 comments on commit 20cef7d

Please sign in to comment.