Skip to content

Testing

Yogita edited this page Jun 27, 2021 · 4 revisions

This project uses pytest for Testing

Pytest: Library to test the source code. Pytest-Coverage: Library to get the testing coverage details.

Navigate to project tests and execute command pytest -v

Use pytest --cov to get details on the coverage

Functions Description
test_blockface_read_csv To Test Blockface is read correctly into a dataframe
test_blockface_transformations To Test Blockface Transformation method executeBlockfaceOperations
test_occupancy_transformations To Test Occupancy Transformation method executeOccupancyOperations
test_remove_non_word_characters To Test Occupancy Function to remove non word characters
test_column_list To Test List of Columns for Occupancy Dataset
test_dataframe_partition To Test Function to get partition of a dataframe
test_remove_parenthesis_characters To Test Function to remove parenthesis from a column in a dataframe
test_read_blockface To Test Blockface dataset is read correctly into a dataframe
test_read_occupancy To Test Occupancy dataset is read correctly into a dataframe
test_historic_read_occupancy To Test Historic Occupancy datasets (2012-2017) is read correctly into a dataframe
Clone this wiki locally