Move code to code dir

Follow yoda
This commit is contained in:
Marty Oehme 2025-10-09 15:20:32 +02:00
parent e18669065e
commit 1084d78c3e
Signed by: Marty
GPG key ID: 4E535BC19C61886E
15 changed files with 12 additions and 5 deletions

View file

@ -0,0 +1,24 @@
import dataframely as dy
import polars as pl
from tests.test_validate_date_col import DateSchema
class PackagesSchema(DateSchema):
package: dy.String = dy.String(nullable=False)
version: dy.String = dy.String(nullable=False)
count: dy.Integer = dy.Integer(nullable=False)
def test_packages_schema():
_ = PackagesSchema.validate(
pl.scan_csv(
"output/packages.csv",
schema={
"date": pl.Date,
"package": pl.String,
"version": pl.String,
"count": pl.UInt16,
},
).collect(engine="streaming")
)