Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle tryes to run all previous ingested bundles tests while ingesting. #175

Open
nmb10 opened this issue Jan 16, 2016 · 3 comments
Open
Assignees

Comments

@nmb10
Copy link
Contributor

nmb10 commented Jan 16, 2016

Consider such test case using basic and casters bundles:

from test.test_base import TestBase

class Test(TestBase):

    def test1_basic(self):
        b = self.import_single_bundle('ingest.example.com/basic')
        self.assertIsNotNone(b.import_tests())

    def test2_casters(self):
        b = self.import_single_bundle('build.example.com/casters')
        self.assertIsNone(b.import_tests())

The order of the tests is important here - first should be basic bundle import, second should be casters bundle import.

If we run both tests:

py.test test/regression/test_175_issue.py::Test --verbose --capture=no

we fail in the second.

But if we run second test only:

py.test test/regression/test_175_issue.py::Test::test2_casters --verbose --capture=no

then it passes.

Caster bundle does not have any tests:

$ ls test/bundle_tests/build.example.com/casters 
bundle.py  bundle.yaml  documentation.md  __init__.py  schema.csv  sources.csv
nmb10 pushed a commit that referenced this issue Jan 16, 2016
@nmb10
Copy link
Contributor Author

nmb10 commented Jan 16, 2016

Check/fix

py.test test/functional/test_bundles.py::Test --verbose --capture=no

after fixing that.

@ericbusboom
Copy link
Contributor

Now sure how this got closed ....

@ericbusboom ericbusboom reopened this Feb 14, 2016
@ericbusboom
Copy link
Contributor

Ah, I closed it because when I run the 175 regression test in PyCharm, it passes, without noting the expected failure decorator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants