Skip to content

Enhance unit tests #15

@amhanson9

Description

@amhanson9

Expand variations being tested.

Split tests with multiple variations.

Split test data for each test.

Make future dates using time delta so that we can test for comparisons with the same month and same year, rather than just having dates far into the future. Also add a test for today.

Confirm the inventory used as input is correct for that spot in the script. For example, some have blank audit columns that should have data.

For easier maintenance:

  • Use the same df_to_list() function in every test (import from test_script.py)
  • Make variable names consistent with script and other tests
  • Make dates in the expected output date instead of datetime
  • Simplify the number of columns in the inventory if not needed for the test
  • Simplify the names of folders and patterns except for the script test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions