-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature test increase ok method on check (#327)
* Added checks for ok method in check * Added ok boolean method for check
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import pytest | ||
from cuallee import Check | ||
import pandas as pd | ||
import polars as pl | ||
import duckdb as dk | ||
from pyspark.sql import SparkSession | ||
|
||
|
||
def test_pandas_ok(check: Check): | ||
df = pd.DataFrame({"A": range(10)}) | ||
check.is_complete("A") | ||
assert check.ok(df) | ||
|
||
|
||
def test_polars_ok(check: Check): | ||
df = pl.DataFrame({"A": range(10)}) | ||
check.is_complete("A") | ||
assert check.ok(df) | ||
|
||
|
||
def test_pyspark_ok(check: Check, spark: SparkSession): | ||
df = spark.range(10) | ||
check.is_complete("id") | ||
assert check.ok(df) |