|
|
|
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
|
|
|
|
import pytest |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_view_order(testapp, login_as): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -29,7 +29,7 @@ def test_view_order(testapp, login_as):
@@ -29,7 +29,7 @@ def test_view_order(testapp, login_as):
|
|
|
|
|
assert "TestUser" in response |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_add_order_ok(testapp, login_as, contains): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -84,7 +84,7 @@ def test_add_order_ok(testapp, login_as, contains):
@@ -84,7 +84,7 @@ def test_add_order_ok(testapp, login_as, contains):
|
|
|
|
|
assert "28.35" in response |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_add_order_validation_error(testapp, login_as, contains): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -116,7 +116,7 @@ def test_add_order_validation_error(testapp, login_as, contains):
@@ -116,7 +116,7 @@ def test_add_order_validation_error(testapp, login_as, contains):
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_add_order_cancel(testapp, login_as, contains): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -160,7 +160,7 @@ def test_add_order_cancel(testapp, login_as, contains):
@@ -160,7 +160,7 @@ def test_add_order_cancel(testapp, login_as, contains):
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_edit_order_ok(testapp, login_as, contains, parse_latest_mail): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -222,7 +222,7 @@ def test_edit_order_ok(testapp, login_as, contains, parse_latest_mail):
@@ -222,7 +222,7 @@ def test_edit_order_ok(testapp, login_as, contains, parse_latest_mail):
|
|
|
|
|
assert "- new status: Hold" in parsed.body |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_edit_order_form_error(testapp, login_as, contains): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -260,7 +260,7 @@ def test_edit_order_form_error(testapp, login_as, contains):
@@ -260,7 +260,7 @@ def test_edit_order_form_error(testapp, login_as, contains):
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_edit_order_cancel(testapp, login_as, contains): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -296,7 +296,7 @@ def test_edit_order_cancel(testapp, login_as, contains):
@@ -296,7 +296,7 @@ def test_edit_order_cancel(testapp, login_as, contains):
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_edit_order_purchaser_vs_user(testapp, login_as, contains): # noqa: ARG001 |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -318,7 +318,7 @@ def test_edit_order_purchaser_vs_user(testapp, login_as, contains): # noqa: ARG
@@ -318,7 +318,7 @@ def test_edit_order_purchaser_vs_user(testapp, login_as, contains): # noqa: ARG
|
|
|
|
|
assert status.has_attr("readonly") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_delete_order_ok(testapp, login_as, contains): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -344,7 +344,7 @@ def test_delete_order_ok(testapp, login_as, contains):
@@ -344,7 +344,7 @@ def test_delete_order_ok(testapp, login_as, contains):
|
|
|
|
|
assert "/orders/4/edit" not in response |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_delete_order_cancel(testapp, login_as, contains): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -370,7 +370,7 @@ def test_delete_order_cancel(testapp, login_as, contains):
@@ -370,7 +370,7 @@ def test_delete_order_cancel(testapp, login_as, contains):
|
|
|
|
|
assert "/orders/4/edit" in response |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_delete_order_no_confirm(testapp, login_as, contains): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -396,7 +396,7 @@ def test_delete_order_no_confirm(testapp, login_as, contains):
@@ -396,7 +396,7 @@ def test_delete_order_no_confirm(testapp, login_as, contains):
|
|
|
|
|
assert "/orders/4/edit" in response |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_reorder_ok(testapp, login_as, contains): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -427,7 +427,7 @@ def test_reorder_ok(testapp, login_as, contains):
@@ -427,7 +427,7 @@ def test_reorder_ok(testapp, login_as, contains):
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_reorder_cancel(testapp, login_as, contains): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
@ -453,7 +453,7 @@ def test_reorder_cancel(testapp, login_as, contains):
@@ -453,7 +453,7 @@ def test_reorder_cancel(testapp, login_as, contains):
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.fun |
|
|
|
|
@pytest.mark.functional |
|
|
|
|
def test_reorder_form_error(testapp, login_as, contains): |
|
|
|
|
response = testapp.get("/", status=302).follow() |
|
|
|
|
assert "Please Log In" in response |
|
|
|
|