Skip to content
This repository was archived by the owner on Jul 26, 2018. It is now read-only.

Conversation

@sagesmith-wf
Copy link

Changes:

  • Added function to read Date_Bounds from a CSV
  • Added resource folder containing the new CSV
  • Merged Chris's changes with my changes
  • Added Unit tests

Please review: @hefischer @andrewperkins-wf

}
_CODE_NAME = 'DQC.US.0006'
_RULE_VERSION = '1.0'
_DEFAULT_DATE_BOUNDS_FILE = os.path.join(os.path.dirname(__file__), 'resources', 'DQC_US_0006', 'dqc_06_date_bounds.csv')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Split up on to multiple lines


def _fact_components_valid(fact):
"""
Return true if all of the components in a fact are none
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be not none

@brianmyers-wf
Copy link
Collaborator

+1

self.assertEqual(res3, expected)


class TestDateBoundsCVS(unittest.TestCase):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'CSV' instead of 'CVS'


self.assertDictEqual(DATE_BOUNDS_DICT, date_bounds_dict_from_csv)

def test_date_bounds_cvs_keys_unequal(self):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'csv' instead of 'cvs'

@jasonleinbach-wf
Copy link
Collaborator

+1

1 similar comment
@derekgengenbacher-wf
Copy link
Collaborator

+1

@jasonleinbach-wf
Copy link
Collaborator

+10 - tested with document originally used for DQC 6. Same number of validations fired.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants