Skip to content

Create unit tests for function to validate crosswalk geoids #537

@malcalakovalski

Description

@malcalakovalski

List of things @ridhi96 tested the function against:

  • Provided the function with a metric year that doesn't exist in the data file.
  • Provided the function with an incorrect column name e.g., "stte" instead of "state"
  • For a county metric file, provided the function with a place crosswalk file. In this case, the function printed all GEOIDs which aren't present.
  • Tested a few different county and place metric files.

Finally, if there's a metric with multiple years and if one of the years is missing some GEOIDs, then the function won't flag them as missing. This is because after making sure years in metric data and crosswalk file match, we compare distinct GEOIDs across the years.

For more context, see the original PR to create this function

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions