easycheck icon indicating copy to clipboard operation
easycheck copied to clipboard

A module offering Python functions for simple and readable assertion-like checks to be used inside code, but also in testing.

Results 21 easycheck issues
Sort by recently updated
recently updated
newest added

This is the continuation of [another issue](https://github.com/nyggus/easycheck/issues/59). This task aims to implement unit complex tests to check the traceback of all `easycheck` check functions and assertion functions.

The `switch` function doesn't set `__tracebackhide__` to `True`. Thus the resulting traceback when an `easycheck` check fails is uninformative. This task aims to add the following line to the `switch`...

Use default of `ValueError` instead of `AssertionError` in `check_if()`. The latter is used in `assert_*` functions, and it's fine. But the natural solution for `check_if()` seems to be `ValueError`.

Should it use `math.nan` and `float('nan')`, too?

In four locations, `# type: ignore` is added. The question is, should these be fixed or left? Maybe simplified?

The `check_comparison()` function seems to be reluctant. It works the same way as `check_if()`, but seems to be less clear. For instance, ``` check_if(x >= y) ``` is clearer, and...

`_raise()` has quite a significant overhead, so it should be redesigned to make it faster.

Add the description of `check_if_in_limits()` to docs files.

Currently, `condition_to_check = operator(len(item), expected_length)` disables to use `handle_with` as exception/warning when `assign_length_to_others=True`, as it's used only in the next step. To use it, a `try-except` block, or something similar,...