File: test_cmdline.py

package info (click to toggle)
fenics-ffcx 1%3A0.5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 964 kB
  • sloc: python: 7,534; ansic: 194; makefile: 58
file content (21 lines) | stat: -rw-r--r-- 502 bytes parent folder | download
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")