Skip to content

compute mu #278

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Dec 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: reformat tests
  • Loading branch information
yucongalicechen committed Dec 30, 2024
commit a4a217d482af895970ea4934745b95fc45bd6497
10 changes: 4 additions & 6 deletions tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,17 @@ def test_get_package_info(monkeypatch, inputs, expected):
"inputs",
[
# Test when the function has invalid inputs
# C1: Both mass density and packing fraction are provided, expect ValueError exception
(
( # C1: Both mass density and packing fraction are provided, expect ValueError exception
{
"sample_composition": "quartz",
"sample_composition": "SiO2",
"energy": 10,
"sample_mass_density": 2.65,
"packing_fraction": 1,
}
),
# C2: None of mass density or packing fraction are provided, expect ValueError exception
(
( # C2: None of mass density or packing fraction are provided, expect ValueError exception
{
"sample_composition": "quartz",
"sample_composition": "SiO2",
"energy": 10,
}
),
Expand Down
Loading