blob: 453120bd5d4199268973aeef94b69237d78e240f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
"""Module to test functions in gn3.db.genotypes"""
import pytest
from gn3.db.genotypes import load_genotype_samples
@pytest.mark.unit_test
@pytest.mark.parametrize(
"genotype_filename,file_type,expected", (
("tests/unit/test_data/genotype.txt", "geno", ("BXD1","BXD2")),))
def test_load_genotype_samples(genotype_filename, file_type, expected):
"""Test that the genotype samples are loaded correctly"""
assert load_genotype_samples(genotype_filename, file_type) == expected
|