From a8399d00433be9c2b5faad5dfe13a997a628d59b Mon Sep 17 00:00:00 2001 From: Edan Bainglass Date: Mon, 30 Dec 2024 09:59:59 +0000 Subject: [PATCH] Update tests --- tests/test_result.py | 10 ++++++++++ tests/test_result/test_summary_report.yml | 7 +++++++ 2 files changed, 17 insertions(+) diff --git a/tests/test_result.py b/tests/test_result.py index 3a86c176d..db7de7038 100644 --- a/tests/test_result.py +++ b/tests/test_result.py @@ -50,6 +50,16 @@ def test_summary_report(data_regression, generate_qeapp_workchain): model = WorkChainSummaryModel() model.process_uuid = workchain.node.uuid report_parameters = model._generate_report_parameters() + # Discard variable parameters + for key in ( + "pk", + "uuid", + "creation_time", + "creation_time_relative", + "modification_time", + "modification_time_relative", + ): + report_parameters.pop(key) data_regression.check(report_parameters) diff --git a/tests/test_result/test_summary_report.yml b/tests/test_result/test_summary_report.yml index b1ebaa504..583bbbc82 100644 --- a/tests/test_result/test_summary_report.yml +++ b/tests/test_result/test_summary_report.yml @@ -1,14 +1,20 @@ bands_computed: true bands_kpoints_distance: 0.1 +cell_angles: 60 60 60 +cell_lengths: 3.847 3.847 3.847 degauss: 0.01 +description: '' electronic_type: metal energy_cutoff_rho: 240.0 energy_cutoff_wfc: 30.0 +formula: Si2 functional: PBEsol functional_link: https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.100.136406 initial_magnetic_moments: null +label: '' material_magnetic: none nscf_kpoints_distance: 0.5 +num_atoms: 2 occupation_type: smearing pdos_computed: true periodicity: xyz @@ -26,6 +32,7 @@ relax_method: positions_cell relaxed: positions_cell scf_kpoints_distance: 0.5 smearing: cold +space_group: Fd-3m (227) spin_orbit: false tot_charge: 0.0 tot_magnetization: false