File: test_table_integrity.py

package info (click to toggle)
wcwidth 0.2.14%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 808 kB
  • sloc: python: 1,567; makefile: 6
file content (18 lines) | stat: -rw-r--r-- 594 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Executes verify-table-integrity.py as a unit test.
"""
# std imports
import os
import sys
import subprocess

# 3rd party
import pytest


@pytest.mark.skipif(sys.version_info[:2] != (3, 12), reason='Test only with a single version of python')
def test_verify_table_integrity():
    subprocess.check_output([sys.executable, os.path.join(os.path.dirname(__file__),
                                                          os.path.pardir,
                                                          'bin',
                                                          'verify-table-integrity.py')])