simple-framework / simple_grid_yaml_compiler

Generates the extended YAML output for an input site_level_configuration_file
Apache License 2.0
0 stars 9 forks source link

added unittest for compiler/lexemes.py #34

Open Boot-Error opened 5 years ago

Boot-Error commented 5 years ago

Added unit tests for functions defined in compiler/lexemes.py based on #25

For function parse_for_variable_hierarchies, the test considers 2 cases.

  1. The data is a CommentedSeq with a CommentedMap with __from__ key in it.
  2. The data is a CommentedMap with __from__ key in it.
  3. The data is a CommentedMap with a CommentedMap with __from__ key in it.