Skip to content

Test Brille fix

Test Brille fix #862

GitHub Actions / Test Results failed Jul 16, 2024 in 0s

1 fail, 6 skipped, 1 043 pass in 32m 21s

    22 files      22 suites   32m 21s ⏱️
 1 050 tests  1 043 ✅  6 💤 1 ❌
10 440 runs  10 374 ✅ 63 💤 3 ❌

Results for commit b56469f.

Annotations

Check warning on line 0 in euphonic_test.test_structure_factor.TestStructureFactorCalculateSqwMap

See this annotation in the file changed.

@github-actions github-actions / Test Results

3 out of 10 runs failed: test_calculate_sqw_map_with_0_inv_cm_bin_doesnt_emit_runtime_warn (euphonic_test.test_structure_factor.TestStructureFactorCalculateSqwMap)

artifacts/Unit test results macos-latest/junit_report_1721121453.xml [took 0s]
artifacts/Unit test results ubuntu-latest/junit_report_1721121458.xml [took 0s]
artifacts/Unit test results windows-latest/junit_report_1721121618.xml [took 0s]
Raw output
assert 8 == 0
 +  where 8 = len([<warnings.WarningMessage object at 0x7fc4d44e9390>, <warnings.WarningMessage object at 0x7fc4d44ebb50>, <warnings.War...d44ea990>, <warnings.WarningMessage object at 0x7fc4d44e9c90>, <warnings.WarningMessage object at 0x7fc4d44eb1d0>, ...])
self = <tests_and_analysis.test.euphonic_test.test_structure_factor.TestStructureFactorCalculateSqwMap object at 0x7fc4dd697750>

    def test_calculate_sqw_map_with_0_inv_cm_bin_doesnt_emit_runtime_warn(self):
        sf = get_sf('CaHgO2', 'CaHgO2_300K_fc_structure_factor.json')
        ebins = np.array([0, 50, 100, 150, 200, 250, 300])*ureg('1/cm')
        with warnings.catch_warnings(record=True) as warn_record:
            sqw = sf.calculate_sqw_map(ebins)
>       assert len(warn_record) == 0
E       assert 8 == 0
E        +  where 8 = len([<warnings.WarningMessage object at 0x7fc4d44e9390>, <warnings.WarningMessage object at 0x7fc4d44ebb50>, <warnings.War...d44ea990>, <warnings.WarningMessage object at 0x7fc4d44e9c90>, <warnings.WarningMessage object at 0x7fc4d44eb1d0>, ...])

euphonic_test/test_structure_factor.py:425: AssertionError