File: test_tests_module.py

package info (click to toggle)
astra-toolbox 2.3.0-4
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 4,972 kB
  • sloc: cpp: 24,378; python: 5,048; sh: 3,514; ansic: 1,181; makefile: 518
file content (13 lines) | stat: -rw-r--r-- 306 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
import astra


def test_cuda(capsys):
    astra.test_CUDA()
    n_stdout_lines = len(capsys.readouterr().out.split('\n')) - 1
    assert n_stdout_lines == 5


def test_no_cuda(capsys):
    astra.test_noCUDA()
    n_stdout_lines = len(capsys.readouterr().out.split('\n')) - 1
    assert n_stdout_lines == 2