From 5f9aa7fdeb2d2446db0128708fb50d277ffd1d87 Mon Sep 17 00:00:00 2001 From: Samuel Mondal <samuel.mondal@unibas.ch> Date: Wed, 14 Dec 2022 09:40:42 +0100 Subject: [PATCH] Add actual tests to the test file --- tests/test_exon_concatenation.py | 8 +++++++- tests/test_poly_a.py | 11 ++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/tests/test_exon_concatenation.py b/tests/test_exon_concatenation.py index fbeb130..01cbd49 100644 --- a/tests/test_exon_concatenation.py +++ b/tests/test_exon_concatenation.py @@ -1,3 +1,9 @@ import pytest - import exon_concatenation from exon_concatenation + +test_fasta_1 = "test_files/test_1.fa" +test_fasta_2 = "test_files/test_2.fa" + +def test_exon_concatenation(): + assert exon_concatenation(test_fasta_1) == expected_list_of_tuples + assert exon_concatenation(test_fasta_2) == expected diff --git a/tests/test_poly_a.py b/tests/test_poly_a.py index dc89197..91f90c1 100644 --- a/tests/test_poly_a.py +++ b/tests/test_poly_a.py @@ -1,3 +1,12 @@ import pytest - from poly_a import poly_a_generator, poly_a_addition_to_fasta_list + + + + +def test_poly_a_generator(): + assert poly_a_generator(exon_string) == exon_and_polya + + +def test_poly_a_addition_to_fasta_list(): + assert poly_a_addition_to_fasta_list(list_of_tuples) == manipulated_list_of_tuples -- GitLab