Skip to content

Commit

Permalink
Regression test added. #175.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmb10 committed Jan 16, 2016
1 parent 08b78ef commit 135306e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/bundle_tests/ingest.example.com/basic/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ def test_before_ingest(self):

@after_ingest()
def test_after_ingest(self):


self.assertInDatafileHeaders('simple', [u'id', u'uuid', u'int', u'float'])

@after_run
Expand Down
30 changes: 30 additions & 0 deletions test/regression/test_175_issue.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
import unittest

from test.test_base import TestBase


class Test(TestBase):

# Order of tests is important here: basic ingests first, casters second.
def test1_basic(self):
b = self.import_single_bundle('ingest.example.com/basic')
self.assertIsNotNone(b.import_tests())
try:
b.ingest()
finally:
b.clean_all()
b.close()

@unittest.expectedFailure
def test2_casters(self):
b = self.import_single_bundle('build.example.com/casters')
self.assertIsNone(b.import_tests())
try:
b.ingest()
b.source_schema()
b.schema()
b.build()
finally:
b.clean_all()
b.close()

0 comments on commit 135306e

Please sign in to comment.