-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove a bunch of stuff to just test the failure.
- Loading branch information
Showing
156 changed files
with
6 additions
and
39,815 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +0,0 @@ | ||
import importlib | ||
|
||
import pytest | ||
|
||
import cssutils | ||
|
||
collect_ignore = [ | ||
'cssutils/_fetchgae.py', | ||
'tools', | ||
] | ||
|
||
|
||
try: | ||
importlib.import_module('lxml.etree') | ||
except ImportError: | ||
collect_ignore += ['examples/style.py'] | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def hermetic_profiles(): | ||
""" | ||
Ensure that tests are hermetic w.r.t. profiles. | ||
""" | ||
before = list(cssutils.profile.profiles) | ||
yield | ||
assert before == cssutils.profile.profiles | ||
|
||
|
||
@pytest.fixture | ||
def saved_profiles(monkeypatch): | ||
profiles = cssutils.profiles.Profiles(log=cssutils.log) | ||
monkeypatch.setattr(cssutils, 'profile', profiles) | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def raise_exceptions(): | ||
# configure log to raise exceptions | ||
cssutils.log.raiseExceptions = True | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def restore_serializer_preference_defaults(): | ||
cssutils.ser.prefs.useDefaults() | ||
Oops, something went wrong.