diff --git a/.buildinfo b/.buildinfo index 1bb8167..a03a9b5 100644 --- a/.buildinfo +++ b/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file records the configuration used when building these files. When it is not found, a full rebuild will be done. -config: a74a8924d91f4e925fbae228de24dd9a +config: 71b532e58f2603bf3b3c2fbd95bfe219 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/_modules/index.html b/_modules/index.html index ea70c7d..a8412de 100644 --- a/_modules/index.html +++ b/_modules/index.html @@ -7,7 +7,7 @@
-
return entry
return ""
- def get_len_of_entries(data, question_number) -> int:
+ def get_entries_len(data: list[str], question_number: int) -> int:
"""function to get the unique entries by length
Args:
@@ -581,7 +581,7 @@ Source code for pykubegrader.validate
# Collect entries for each question in a list.
entries = [
entry
- for j in range(1, get_len_of_entries(data, i))
+ for j in range(1, get_entries_len(data, i))
if (entry := get_last_entry(data, f"q{i}_{j}")) != ""
]
@@ -647,7 +647,7 @@ Source code for pykubegrader.validate
print("Writing to results.json")
json.dump(result_structure, file, indent=4)
- login_(login_data, login_url)
+ verify_login(login_data, login_url)
# The file to be uploaded. Ensure the path is correct.
file_path = "results.json"
@@ -683,18 +683,9 @@ Source code for pykubegrader.validate
-
-[docs]
-def login_(login_data, login_url):
- login_response = requests.post(
- login_url, auth=HTTPBasicAuth(login_data["username"], login_data["password"])
- )
-
- if login_response.status_code == 200:
- print("Login successful")
- else:
- Exception("Login failed")
-
+#
+# Helper functions
+#
@@ -717,6 +708,20 @@ Source code for pykubegrader.validate
else:
print("results.json was not present")
+
+
+
+[docs]
+def verify_login(login_data, login_url):
+ login_response = requests.post(
+ login_url, auth=HTTPBasicAuth(login_data["username"], login_data["password"])
+ )
+
+ if login_response.status_code == 200:
+ print("Login successful")
+ else:
+ Exception("Login failed")
+
diff --git a/_modules/pykubegrader/widgets/multiple_choice.html b/_modules/pykubegrader/widgets/multiple_choice.html
index fc3d70f..282c33e 100644
--- a/_modules/pykubegrader/widgets/multiple_choice.html
+++ b/_modules/pykubegrader/widgets/multiple_choice.html
@@ -7,7 +7,7 @@
- pykubegrader.widgets.multiple_choice — PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation
+ pykubegrader.widgets.multiple_choice — PyKubeGrader 0.0.post1.dev1+gfe35314 documentation
@@ -39,7 +39,7 @@
-
+
@@ -48,7 +48,7 @@
-
+
@@ -115,8 +115,8 @@
-
-
+
+
diff --git a/_modules/pykubegrader/widgets/reading_question.html b/_modules/pykubegrader/widgets/reading_question.html
index fd5269d..257ecfd 100644
--- a/_modules/pykubegrader/widgets/reading_question.html
+++ b/_modules/pykubegrader/widgets/reading_question.html
@@ -7,7 +7,7 @@
- pykubegrader.widgets.reading_question — PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation
+ pykubegrader.widgets.reading_question — PyKubeGrader 0.0.post1.dev1+gfe35314 documentation
@@ -39,7 +39,7 @@
-
+
@@ -48,7 +48,7 @@
-
+
@@ -115,8 +115,8 @@
-
-
+
+
diff --git a/_modules/pykubegrader/widgets/select_many.html b/_modules/pykubegrader/widgets/select_many.html
index fcf957b..d80d0e8 100644
--- a/_modules/pykubegrader/widgets/select_many.html
+++ b/_modules/pykubegrader/widgets/select_many.html
@@ -7,7 +7,7 @@
- pykubegrader.widgets.select_many — PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation
+ pykubegrader.widgets.select_many — PyKubeGrader 0.0.post1.dev1+gfe35314 documentation
@@ -39,7 +39,7 @@
-
+
@@ -48,7 +48,7 @@
-
+
@@ -115,8 +115,8 @@
-
-
+
+
diff --git a/_modules/pykubegrader/widgets/student_info.html b/_modules/pykubegrader/widgets/student_info.html
index a6757c0..265cd39 100644
--- a/_modules/pykubegrader/widgets/student_info.html
+++ b/_modules/pykubegrader/widgets/student_info.html
@@ -7,7 +7,7 @@
- pykubegrader.widgets.student_info — PyKubeGrader 0.0.post1.dev1+g1b77c28 documentation
+ pykubegrader.widgets.student_info — PyKubeGrader 0.0.post1.dev1+gfe35314 documentation
@@ -39,7 +39,7 @@
-
+
@@ -48,7 +48,7 @@
-
+
@@ -115,8 +115,8 @@
-
-
+
+
+ |