-
Notifications
You must be signed in to change notification settings - Fork 520
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
test: better structure for the dpmodel uts #3232
test: better structure for the dpmodel uts #3232
Conversation
wanghan-iapcm
commented
Feb 5, 2024
•
edited
Loading
edited
- mv all dpmodel related UTs to a separate directory
- split the large test_model_format_utils.py as tests for different modules.
self.rcut_smth = 0.4 | ||
self.rcut = 2.1 | ||
|
||
nf, nloc, nnei = self.expected_nlist.shape |
Check notice
Code scanning / CodeQL
Unused local variable Note test
self.rcut_smth = 0.4 | ||
self.rcut = 2.1 | ||
|
||
nf, nloc, nnei = self.expected_nlist.shape |
Check notice
Code scanning / CodeQL
Unused local variable Note test
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## devel #3232 +/- ##
==========================================
+ Coverage 0 20.76% +20.76%
==========================================
Files 0 363 +363
Lines 0 32515 +32515
Branches 0 1595 +1595
==========================================
+ Hits 0 6752 +6752
- Misses 0 25064 +25064
- Partials 0 699 +699 ☔ View full report in Codecov by Sentry. |
if nfp > 0: | ||
ifp = rng.normal(size=(self.nf, nfp - 1)) | ||
with self.assertRaises(ValueError) as context: | ||
ret0 = ifn0(dd[0], atype, fparam=ifp, aparam=iap) |
Check warning
Code scanning / CodeQL
Variable defined multiple times Warning test