whitespace
This commit is contained in:
1 parent
e00375e586
commit
f9916783e9
4 files changed
+6
-7
No files matched your search
@@ -149,4 +149,3 @@ def prefix_multilines(text, prefix=": "):
|
||||
|
||||
return lines[0] + "\n" + "\n".join(map(lambda line: prefix + line,
|
||||
lines[1:]))
|
||||
|
||||
@@ -1495,7 +1495,7 @@ class SettingsPlugin(OctoPrintPlugin):
|
||||
"""
|
||||
from flask_login import current_user
|
||||
import copy
|
||||
|
||||
|
||||
from octoprint.access.permissions import Permissions
|
||||
|
||||
data = copy.deepcopy(self._settings.get_all_data(merged=True))
|
||||
|
||||
@@ -530,11 +530,11 @@ class OctoPrintFlaskRequestTest(unittest.TestCase):
|
||||
def test_cookie_suffix(self):
|
||||
request = OctoPrintFlaskRequest(standard_environ)
|
||||
self.assertEqual("_P5000", request.cookie_suffix)
|
||||
|
||||
|
||||
def test_cookie_suffix_with_root(self):
|
||||
script_root_environ = dict(standard_environ)
|
||||
script_root_environ["SCRIPT_NAME"] = "/path/to/octoprint"
|
||||
|
||||
|
||||
request = OctoPrintFlaskRequest(script_root_environ)
|
||||
self.assertEqual("_P5000_R|path|to|octoprint", request.cookie_suffix)
|
||||
|
||||
|
||||
@@ -371,10 +371,10 @@ except ImportError:
|
||||
class GlobEscapeTest(unittest.TestCase):
|
||||
"""
|
||||
Ported from Python 3.4
|
||||
|
||||
|
||||
See https://github.com/python/cpython/commit/fd32fffa5ada8b8be8a65bd51b001d989f99a3d3
|
||||
"""
|
||||
|
||||
|
||||
@ddt.data(
|
||||
("abc", "abc"),
|
||||
("[", "[[]"),
|
||||
@@ -387,7 +387,7 @@ except ImportError:
|
||||
def test_glob_escape(self, text, expected):
|
||||
actual = octoprint.util.glob_escape(text)
|
||||
self.assertEqual(actual, expected)
|
||||
|
||||
|
||||
@ddt.data(
|
||||
("?:?", "?:[?]"),
|
||||
("*:*", "*:[*]"),
|
||||
|
||||
Reference in new issue
Block a user