stupidb.tests.test_stupidb

Tests for stupidb package.

Functions

cumagg(seq, combine)

Cumulative aggregation.

subclasses(cls)

test_agg(rows)

test_cross_join(left, right)

test_cumagg(rows)

test_from_iterable_is_invalid(cls)

rtype

None

test_full_join(employee, department, con)

test_group_by(rows)

test_inner_join(left, right, con)

test_invalid_agg(rows)

test_invalid_limit(rows, offset, lim)

rtype

None

test_left_join(left, right, con)

test_min_max_window(t_rows)

test_minmax(rows)

test_multiple_windows(t_rows)

test_pretty(t_rows)

test_pretty_fmt(t_rows)

test_projection(rows)

test_range_window(rows)

test_range_window_with_multiple_ordering_keys_fails(rows)

test_right_join(left, right, con)

test_right_shiftable(rows)

test_rows_window(rows)

test_rows_window_partition(rows)

test_selection(rows)

test_semi_join()

rtype

None

test_semi_join_not_all_rows_match()

rtype

None

test_temporal_range_window(t_table, t_rows)

test_total_vs_sum()

rtype

None

test_valid_limit(rows, offset, lim)

rtype

None

test_variance_window(t_rows)

stupidb.tests.test_stupidb.cumagg(seq, combine)[source]

Cumulative aggregation.

Return type

Iterator[~T]