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

Import * causes subtle bug with app_class line #11

Open
GatorQue opened this issue Nov 25, 2017 · 0 comments
Open

Import * causes subtle bug with app_class line #11

GatorQue opened this issue Nov 25, 2017 · 0 comments

Comments

@GatorQue
Copy link

from cement.utils.test import *

If the above import line is used and no class_prefix is defined then the cement.util.TestApp import ends up replacing the @class_prefix@TestApp from the import line just above it here:
from @module@.cli.main import @class_prefix@TestApp

which causes issues with the line shown here:
app_class = @class_prefix@TestApp

I recommend replacing the * with CementTestCase only on line 3 above.

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

1 participant