Passed
Pull Request — master (#3198)
by Alexander
03:27 queued 01:20
created

test_products   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 13
dl 0
loc 20
rs 10
c 0
b 0
f 0
wmc 7

1 Function

Rating   Name   Duplication   Size   Complexity  
B test_get_all() 0 12 7
1
import os
2
3
import pytest
4
5
import ssg.products
6
7
8
def test_get_all():
9
    ssg_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../.."))
10
    products = ssg.products.get_all(ssg_root)
11
12
    assert "fedora" in products.linux
13
    assert "fedora" not in products.other
14
15
    assert "rhel7" in products.linux
16
    assert "rhel7" not in products.other
17
18
    assert "jre" in products.other
19
    assert "jre" not in products.linux
20