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

Test suite fails with Flask-Script 0.6.7 #94

Open
EdwardBetts opened this issue Oct 29, 2015 · 0 comments
Open

Test suite fails with Flask-Script 0.6.7 #94

EdwardBetts opened this issue Oct 29, 2015 · 0 comments

Comments

@EdwardBetts
Copy link

This is what happens when I run the test suite.

$ python2.7 setup.py test
running test
running egg_info
writing requirements to src/Flask_Assets.egg-info/requires.txt
writing src/Flask_Assets.egg-info/PKG-INFO
writing top-level names to src/Flask_Assets.egg-info/top_level.txt
writing dependency_links to src/Flask_Assets.egg-info/dependency_links.txt
reading manifest file 'src/Flask_Assets.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'docs/_themes/.git'
warning: no previously-included files matching '*.pyc' found under directory 'example'
writing manifest file 'src/Flask_Assets.egg-info/SOURCES.txt'
running build_ext
tests.test_config.TestConfigAppBound.test_custom_values
Custom config values are relayed to the Flask config as.is. ... ok
tests.test_config.TestConfigAppBound.test_no_override
Ensure that the webassets defaults do not override existing ... ok
tests.test_config.TestConfigAppBound.test_set_config
Setting a value in the Flask config works. ... ok
tests.test_config.TestConfigAppBound.test_set_environment
Setting a config value on the environment works. ... ok
tests.test_config.TestConfigNoAppBound.test_global_defaults
We may set defaults even without an application, however. ... ok
tests.test_config.TestConfigNoAppBound.test_key_error
KeyError is raised if a config value doesn't exist. ... ok
tests.test_config.TestConfigNoAppBound.test_multiple_separate_apps
Each app has it's own separate configuration. ... ok
tests.test_config.TestConfigNoAppBound.test_no_app_available
Without an application bound, we can't do much. ... ok
tests.test_env.TestEnv.test_from_python_module
Python configuration module gets loaded ... ok
tests.test_env.TestEnv.test_from_yaml
YAML configuration gets loaded ... ok
tests.test_env.TestEnv.test_tag_available
Jinja tag has been made available. ... ok
tests.test_integration.TestBlueprints.test_blueprint_no_static_folder
Test dealing with a blueprint without a static folder. ... ok
tests.test_integration.TestBlueprints.test_blueprint_output
[Regression] Output can point to a blueprint's static ... ok
tests.test_integration.TestBlueprints.test_blueprint_urls
Urls to blueprint files are generated correctly. ... ok
tests.test_integration.TestBlueprints.test_cssrewrite
Make sure cssrewrite works with Blueprints. ... ok
tests.test_integration.TestBuild.test_build ... ok
tests.test_integration.TestBuild.test_with_cache_default_directory
[Regression] The cache directory is created in the Flask ... ok
tests.test_integration.TestUrlAndDirectory.test_config_values_not_set_by_default ... ok
tests.test_integration.TestUrlAndDirectory.test_custom_directory_and_url
Custom directory/url are configured - this will affect how ... ok
tests.test_integration.TestUrlAndDirectory.test_custom_load_path
A custom load_path is configured - this will affect how ... ok
tests.test_integration.TestUrlAndDirectory.test_directory_auto
Test how we resolve file references through the Flask static ... ok
tests.test_integration.TestUrlAndDirectory.test_existing_request_object_used
[Regression] Check for a bug where the url generation code of ... ok
tests.test_integration.TestUrlAndDirectory.test_glob
Make sure url generation works with globs. ... ok
tests.test_integration.TestUrlAndDirectory.test_url_auto
Test how urls are generated via the Flask static system ... ok
tests.test_integration.TestUrlAndDirectoryWithInitApp.test
Make sure the "url" and "directory" config values are ... ok
tests.test_integration.test_import ... ok
tests.test_script.TestScript.test_call ... ERROR
tests.test_script.TestScript.test_call_auto_env
Regression test: Passing the environment to the ManageAssets command ... ok
tests.test_script.TestScript.test_parse_templates
Test the --parse-templates option. ... ok

======================================================================
ERROR: tests.test_script.TestScript.test_call
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/edward/src/deb_dist/flask-assets-0.11/tests/test_script.py", line 52, in test_call
    assert self.last_script_call == ['-h']
AttributeError: 'TestScript' object has no attribute 'last_script_call'
-------------------- >> begin captured stdout << ---------------------
usage: manage.py assets [-h]

Manage assets.

optional arguments:
  -h, --help  show this help message and exit

--------------------- >> end captured stdout << ----------------------

----------------------------------------------------------------------
Ran 29 tests in 0.201s

FAILED (errors=1)
$
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