From d2541bcfda995a8f4d2983b09c7268e35e916c76 Mon Sep 17 00:00:00 2001 From: srmnitc Date: Mon, 26 Oct 2020 21:56:00 +0100 Subject: [PATCH] add liquid test --- tests/test_liquid_avg.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_liquid_avg.py diff --git a/tests/test_liquid_avg.py b/tests/test_liquid_avg.py new file mode 100644 index 0000000..dcc43e7 --- /dev/null +++ b/tests/test_liquid_avg.py @@ -0,0 +1,14 @@ +import pytest +from pytint.input import read_yamlfile +import pytint.lattice as pl +from pytint.liquid import Liquid +import os +import numpy as np + +def test_liquid_averaging(): + options = read_yamlfile("tests/input.yaml") + lqd = Liquid(t=1000, p=0, l="fcc", apc=4, + alat=4.05, c=0.0, options=options, simfolder=os.getcwd(), + thigh=1500) + lqd.write_average_script() + assert os.path.exists("traj.dat") == True