siman:dev:req
Table of Contents
Requirements for tests
Tests for Siman are in the folder “~/tests/some_number”
Requirements
Create new subfolder in siman/tests, giving it new name using the next available number, e.g. 5 put 5_anyname_for_your_functionality.py file with your test code into siman/tests/5 subfolder. The script should have the following sections:
"""
Test description
Author: Pupkin Vasya
"""
if __name__== "__main__":
for name in 'POSCAR1', 'POSCAR2', 'POSCAR3':
st = smart_structure_read(name)
st.write_poscar('POSCAR_new')
result = compare_number_of_lines(name, 'POSCAR_new')
if result:
print("test 5.1: ok") # you can make several subtests in test 5
else:
print('test 5.1: fail')
Developed tests
- See siman/tests folder
siman/dev/req.txt · Last modified: 2025/02/26 13:09 by admin