namebrandon / Sparkov_Data_Generation

Synthetic Credit Card Transaction Generator used in the Sparkov program.
MIT License
133 stars 62 forks source link

Feature/tests #7

Closed streamnsight closed 2 years ago

streamnsight commented 2 years ago

Test suite for Customer and Transaction datagen I built this test suite as I have worked on speeding up the code (PR to follow, 5-6x speed improvement on transaction generation), and that is quite a bit of refactoring, so I wanted to make sure my changes did not introduce regressions.

Note this includes changes from the previous bugfix PR in queue, so please merge previous PR first and the diff will be cleaner, without changes to the code, except for the global variable definition needed for the tests to work.

Run the tests with python tests.py or pytest tests.py