1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
# Copyright (C) 2018 Chris N. Richardson
#
# This file is part of FFCx. (https://www.fenicsproject.org)
#
# SPDX-License-Identifier: LGPL-3.0-or-later
import os
import os.path
import subprocess
def test_cmdline_simple():
os.chdir(os.path.dirname(__file__))
subprocess.run(["ffcx", "Poisson.py"])
def test_visualise():
os.chdir(os.path.dirname(__file__))
subprocess.run(["ffcx", "--visualise", "Poisson.py"])
assert os.path.isfile("S.pdf")
assert os.path.isfile("F.pdf")
|