Skip to content

Commit

Permalink
Add test_missing_flask_compress_raises
Browse files Browse the repository at this point in the history
  • Loading branch information
T4rk1n committed Oct 28, 2022
1 parent 4c49593 commit babae51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/test_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,3 +482,8 @@ def test_debug_mode_enable_dev_tools(empty_environ, debug_env, debug, expected):
app = Dash()
app.enable_dev_tools(debug=debug)
assert app._dev_tools.ui == expected


def test_missing_flask_compress_raises():
with pytest.raises(ImportError):
Dash(compress=True)

0 comments on commit babae51

Please # to comment.