restore environment-based queue names

This commit is contained in:
dandds
2018-10-15 16:11:14 -04:00
parent e5f588e032
commit 8a207b3bc6
3 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
import pytest
from atst.queue import queue, send_mail
from atst.queue import queue
# ensure queue is always empty for unit testing
@pytest.fixture(scope="function", autouse=True)
@@ -11,7 +11,7 @@ def reset_queue():
def test_send_mail():
initial = len(queue.get_queue())
send_mail.queue(
queue.send_mail(
["lordvader@geocities.net"], "death start", "how is it coming along?"
)
assert len(queue.get_queue()) == initial + 1