Skip to content

Commit

Permalink
On windows, docs now include their original carriage returns before n…
Browse files Browse the repository at this point in the history
…ewlines
  • Loading branch information
Jacob Beck committed May 21, 2020
1 parent afcb0c1 commit 4be4617
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/integration/060_persist_docs_tests/test_persist_docs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from test.integration.base import DBTIntegrationTest, use_profile
import os

import json

Expand All @@ -19,7 +20,10 @@ def _assert_common_comments(self, *comments):
assert '\n' in comment
assert 'Some $lbl$ labeled $lbl$ and $$ unlabeled $$ dollar-quoting' in comment
assert '/* comment */' in comment
assert '--\n' in comment
if os.name == 'nt':
assert '--\r\n' in comment or '--\n' in comment
else:
assert '--\n' in comment

def _assert_has_table_comments(self, table_node):
table_comment = table_node['metadata']['comment']
Expand Down

0 comments on commit 4be4617

Please sign in to comment.