New innovative programming disciplines, frameworks and products, I create new code.
I am a professional Python developer.
Vampytest allows you, but not limited to write relative import based tests.
License: Other
The currently tested package should be auto detected instead of being required to manually define it.
This would allow greater flexibility when using vampytest, as you would not need to define the package directory as a parameter.
revert
actually reverses a test's result and not reverts it. Should be renamed.
There should be a vampytest.call_with
alternative that works from a generator.
def generator():
yield 1, 2
yield 2, 3
@vampytest.new_stuff(generator)
def test_koishi(p0, p1):
pass
When using vampytest.call_with
and the test fails the parameters are not showing up in the output.
stdout
and stderr
should be captured. This would catch stray print
and .write
code. Would also catch warnings. If a test's io is captured it should show up at the end of the output above the failing ones.
When dictionaries are checked for equality or inequality, and they fail then detailed difference should also be rendered.
Example:
... Normal output ...
Common items:
{
....,
....,
}
Different items:
{
+ ....
+ ...,
- ...,
- ...,
}
+
should mark the values that parameter_0
has and -
that parameter_1
has. If a value is different in both, then first +
should be rendered followed by its -
counterpart.
The output should be sorted.
Add a context manager to capture stdout
and stderr
.
def test_pepe():
io_capture = vampytest.capture_io()
with io_capture:
pass
value = io_capture.get_value()
vampytest.assert_instance
should accept multiple types.
Sub test should show up separately on the output and also should be included in the counting like that as well.
vampytest.assert_raises
should accept a where
parameter that is used as a condition.
def test_pepe():
with vampytest.assert_raises(RuntimeError, where = lambda err: 'nue' in repr(err)):
action()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.