Skip to content

Commit

Permalink
Add test for __options
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Oct 24, 2014
1 parent b2125ea commit 4ff7f72
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions losser/test_columns.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"__options": {
"append_unmatched_keys": true,
"blacklist": ["author", "notes"]
},
"Data Owner": {
"pattern_path": "^author$",
"unique": true,
Expand Down
9 changes: 9 additions & 0 deletions losser/test_losser.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,3 +437,12 @@ def test_returning_csv():
"dataset two,daily\r\n"
"dataset three,weekly\r\n"
)


def test_that_options_are_not_supported_yet():
"""The __options dict in columns.json is not supported yet."""
path = os.path.join(_this_directory(), "test_columns.json")
columns = losser._read_columns_file(path)
assert '__options' not in columns, (
"'__options' should be filtered out of columns.json files because it "
"isn't supported yet.")

0 comments on commit 4ff7f72

Please sign in to comment.