forked from open-atmos/PyPartMC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_version.py
32 lines (24 loc) · 1 KB
/
test_version.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
####################################################################################################
# This file is a part of PyPartMC licensed under the GNU General Public License v3 (LICENSE file) #
# Copyright (C) 2022 University of Illinois Urbana-Champaign #
# Authors: https://github.com/open-atmos/PyPartMC/graphs/contributors #
####################################################################################################
import pytest
import PyPartMC as ppmc
def test_version():
assert 3 < len(ppmc.__version__) < 20
@pytest.mark.parametrize(
"pkg",
(
"PartMC",
"pybind11",
"CAMP",
"SUNDIALS",
),
)
def test_versions_of_build_time_dependencies(pkg):
sut = ppmc.__versions_of_build_time_dependencies__
assert 3 < len(sut[pkg]) < 20
assert '"' not in sut[pkg]
def test_versions_of_build_time_dependencies_printable():
print(ppmc.__versions_of_build_time_dependencies__)