Skip to content

Commit f32c1ee

Browse files
test: Update test
Signed-off-by: William José Moreno Reyes <williamjmorenor@gmail.com>
1 parent 63e8b78 commit f32c1ee

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

tests/test_vistas.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -227,34 +227,3 @@ def test_demo_course(request, lms_application):
227227

228228
else:
229229
pytest.skip("Not running slow test.")
230-
231-
232-
def test_email_backend(request, lms_application):
233-
if request.config.getoption("--slow") == "True":
234-
from now_lms import database, initial_setup
235-
236-
with lms_application.app_context():
237-
238-
database.drop_all()
239-
initial_setup(with_tests=False, with_examples=False)
240-
241-
with lms_application.test_client() as client:
242-
client.get("/setting/mail")
243-
client.get("/setting/mail_check")
244-
data = {
245-
"MAIL_HOST": "smtp.server.domain",
246-
"MAIL_PORT": "465",
247-
"MAIL_USERNAME": "user@server.domain",
248-
"MAIL_PASSWORD": "ello123ass",
249-
"MAIL_USE_TLS": True,
250-
"MAIL_USE_SSL": True,
251-
"email": True,
252-
}
253-
client.post(
254-
"/setting/mail",
255-
data=data,
256-
follow_redirects=True,
257-
)
258-
259-
else:
260-
pytest.skip("Not running slow test.")

0 commit comments

Comments
 (0)