mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-05 04:44:27 -04:00
bundling required python dependencies, to make it easier on Tails users
This commit is contained in:
parent
18fd65acd7
commit
8ffa569094
224 changed files with 52588 additions and 0 deletions
40
lib/werkzeug/testsuite/compat.py
Normal file
40
lib/werkzeug/testsuite/compat.py
Normal file
|
@ -0,0 +1,40 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
werkzeug.testsuite.compat
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Ensure that old stuff does not break on update.
|
||||
|
||||
:copyright: (c) 2013 by Armin Ronacher.
|
||||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
import unittest
|
||||
import warnings
|
||||
from werkzeug.testsuite import WerkzeugTestCase
|
||||
|
||||
from werkzeug.wrappers import Response
|
||||
from werkzeug.test import create_environ
|
||||
|
||||
|
||||
class CompatTestCase(WerkzeugTestCase):
|
||||
|
||||
def test_old_imports(self):
|
||||
from werkzeug.utils import Headers, MultiDict, CombinedMultiDict, \
|
||||
Headers, EnvironHeaders
|
||||
from werkzeug.http import Accept, MIMEAccept, CharsetAccept, \
|
||||
LanguageAccept, ETags, HeaderSet, WWWAuthenticate, \
|
||||
Authorization
|
||||
|
||||
def test_exposed_werkzeug_mod(self):
|
||||
import werkzeug
|
||||
for key in werkzeug.__all__:
|
||||
# deprecated, skip it
|
||||
if key in ('templates', 'Template'):
|
||||
continue
|
||||
getattr(werkzeug, key)
|
||||
|
||||
|
||||
def suite():
|
||||
suite = unittest.TestSuite()
|
||||
suite.addTest(unittest.makeSuite(CompatTestCase))
|
||||
return suite
|
Loading…
Add table
Add a link
Reference in a new issue