Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 7ddb197

Browse files
committed
Some test fixes plus skip w3 validation for now
1 parent ad0132f commit 7ddb197

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
# Wait for the container to start and create a basic venv before running docker tools inside it.
4141
sleep 5
4242
# Invoke this directly, since the ``docker-tools`` script isn't installed yet. After this finishes, the docker tools are installed.
43-
docker exec -t runestoneserver-runestone-1 bash -c "\$RUNESTONE_PATH/.venv/bin/python \$RUNESTONE_PATH/docker/docker_tools.py wait"
43+
docker compose exec runestone bash -c "\$RUNESTONE_PATH/.venv/bin/python \$RUNESTONE_PATH/docker/docker_tools.py wait"
4444
- name: Test
4545
id: pytest
4646
run: |
@@ -50,4 +50,4 @@ jobs:
5050
echo "Checking if site is up..."
5151
curl --silent --location 127.0.0.1 | grep "About Runestone"
5252
# Test just the Runestone server.
53-
docker-tools test --rs
53+
docker-tools test --rs -- --skip_w3_validate

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ def __init__(
634634
# Now, post the registration.
635635
self.test_client.validate(
636636
"default/user/register",
637-
"Runestone Registration" if self.is_free else "Payment Amount",
637+
"Support Runestone" if self.is_free else "Payment Amount",
638638
data=dict(
639639
username=self.username,
640640
first_name=self.first_name,
@@ -702,7 +702,7 @@ def update_profile(
702702
if is_free is None:
703703
expected_string = "Course Selection"
704704
else:
705-
expected_string = "Our Mission" if is_free else "Payment Amount"
705+
expected_string = "Support Runestone" if is_free else "Payment Amount"
706706
username = username or self.username
707707
first_name = first_name or self.first_name
708708
last_name = last_name or self.last_name

tests/test_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ def test_killer(test_assignment, test_client, test_user_1, runestone_db_tools):
8282
("admin/doc", True, "Runestone Help and Documentation", 1),
8383
# **Assignments**
8484
# ----------------
85-
("assignments/chooseAssignment", True, "Assignments", 1),
86-
("assignments/doAssignment", True, "Bad Assignment ID", 1),
85+
("assignments/chooseAssignment", True, "Assignments", 2),
86+
("assignments/doAssignment", True, "Bad Assignment ID", 2),
8787
(
8888
"assignments/practice",
8989
True,

0 commit comments

Comments
 (0)