Skip to content

Commit 6850718

Browse files
committed
Fix two bugs; Bump version to 1.6.1
1 parent c93f241 commit 6850718

File tree

6 files changed

+17
-5
lines changed

6 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
- TBD
1212

1313

14+
## [1.6.1] - 2025-10-31
15+
16+
### Fixed
17+
18+
- total_score is not reset during a for loop
19+
20+
### Changed
21+
22+
- automatically include postsetup.sh in build
23+
24+
1425
## [1.6.0] - 2025-10-30
1526

1627
### Added
@@ -146,7 +157,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
146157
Initial release; see [v1.0 HISTORY.md](https://github.com/JMU-CS/jmu_pytest_utils/blob/v1.0/HISTORY.md)
147158

148159

149-
[unreleased]: https://github.com/JMU-CS/jmu_pytest_utils/compare/v1.6.0...HEAD
160+
[unreleased]: https://github.com/JMU-CS/jmu_pytest_utils/compare/v1.6.1...HEAD
161+
[1.6.1]: https://github.com/JMU-CS/jmu_pytest_utils/compare/v1.6.0...v1.6.1
150162
[1.6.0]: https://github.com/JMU-CS/jmu_pytest_utils/compare/v1.5.0...v1.6.0
151163
[1.5.0]: https://github.com/JMU-CS/jmu_pytest_utils/compare/v1.4.0...v1.5.0
152164
[1.4.0]: https://github.com/JMU-CS/jmu_pytest_utils/compare/v1.3.0...v1.4.0

jmu_pytest_utils/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Path and names of the template files
1010
TEMPLATE_PATH = os.path.join(os.path.dirname(__file__), "template")
1111
CONFIG_FILES = ["docstring.cfg", "flake8.cfg", "requirements.txt",
12-
"ruff-code.toml", "ruff-docs.toml"]
12+
"ruff-code.toml", "ruff-docs.toml", "postsetup.sh"]
1313
SCRIPT_FILES = ["setup.sh", "run_autograder"]
1414

1515
# Files and dirs created by run_autograder

jmu_pytest_utils/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def pytest_sessionfinish(session: pytest.Session, exitstatus: int) -> None:
114114
score = weight
115115
# Show score only if not 0/0 points (blue)
116116
if score or weight:
117-
total_score = score
117+
total_score += score
118118
test["score"] = score
119119
test["max_score"] = weight
120120

jmu_pytest_utils/template/postsetup.sh

Whitespace-only changes.

jmu_pytest_utils/template/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ source .venv/bin/activate
1616
pip install --upgrade pip
1717

1818
# Install libraries
19-
pip install git+https://github.com/JMU-CS/[email protected].0
19+
pip install git+https://github.com/JMU-CS/[email protected].1
2020
if [ -f "requirements.txt" ]; then
2121
pip install -r requirements.txt
2222
fi

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name="jmu_pytest_utils",
7-
version="1.6.0",
7+
version="1.6.1",
88
description="pytest plugin for Gradescope autograders",
99
author="Chris Mayfield",
1010
author_email="[email protected]",

0 commit comments

Comments
 (0)