From 09c7a61f3f65d7d716db80fbc9d67367c4268a3b Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Wed, 22 Dec 2021 15:01:51 +0000 Subject: [PATCH] Pep8 fixes --- PyRIGS/tests/regions.py | 5 ++--- RIGS/tests/test_unit.py | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/PyRIGS/tests/regions.py b/PyRIGS/tests/regions.py index edd767c9..c16c61a0 100644 --- a/PyRIGS/tests/regions.py +++ b/PyRIGS/tests/regions.py @@ -120,11 +120,10 @@ class TextBox(Region): class SimpleMDETextArea(Region): @property def value(self): - return self.driver.execute_script("return document.querySelector('#' + arguments[0]).nextSibling.nextSibling.CodeMirror.getDoc().getValue();", self.root.get_attribute("id")); + return self.driver.execute_script("return document.querySelector('#' + arguments[0]).nextSibling.nextSibling.CodeMirror.getDoc().getValue();", self.root.get_attribute("id")) def set_value(self, value): - self.driver.execute_script("document.querySelector('#' + arguments[0]).nextSibling.nextSibling.CodeMirror.getDoc().setValue(arguments[1]);", self.root.get_attribute("id"), value); - + self.driver.execute_script("document.querySelector('#' + arguments[0]).nextSibling.nextSibling.CodeMirror.getDoc().setValue(arguments[1]);", self.root.get_attribute("id"), value) class CheckBox(Region): diff --git a/RIGS/tests/test_unit.py b/RIGS/tests/test_unit.py index c6f974a3..12fcf1a4 100644 --- a/RIGS/tests/test_unit.py +++ b/RIGS/tests/test_unit.py @@ -520,13 +520,13 @@ and images can be specified like so: ![example image](example-image.jpg "An exemplary image") -Inline math equations go in like so: $\omega = d\phi / dt$. Display +Inline math equations go in like so: $\\omega = d\\phi / dt$. Display math should get its own line and be put in in double-dollarsigns: -$$I = \int \rho R^{2} dV$$ +$$I = \\int \rho R^{2} dV$$ And note that you can backslash-escape any punctuation characters -which you wish to be displayed literally, ex.: \`foo\`, \*bar\*, etc. +which you wish to be displayed literally, ex.: \\`foo\\`, \\*bar\\*, etc. """ def test_html_safe(self):