File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1919 - id : forbid-new-submodules
2020 exclude : (example)
2121
22- - repo : https://github.com/pre-commit/mirrors- yapf
23- rev : v0.30 .0
22+ - repo : https://github.com/google/ yapf
23+ rev : v0.43 .0
2424 hooks :
2525 - id : yapf
2626 name : yapf
Original file line number Diff line number Diff line change 11"""
22Tests for the CLI system
33"""
4+ import contextlib
45import os
56from pathlib import Path
67import pytest
@@ -453,12 +454,14 @@ def test_help(nabis2_project_dir):
453454
454455def _check_dos_atom_orbital_plots (output ):
455456 print (output .stdout )
456- print (output .stderr )
457+ with contextlib .suppress (Exception ):
458+ print (output .stderr )
457459 print (output )
458460 assert output .exit_code == 0
459461 assert Path ('unfold.png' ).is_file ()
460462 Path ('unfold.png' ).unlink ()
461463
464+
462465def test_dos_atom_orbital_plots (nabis2_project_dir ):
463466 """Test various dos/atom/orbital etc plot options with NaBiS2"""
464467 os .chdir (nabis2_project_dir )
You can’t perform that action at this time.
0 commit comments