Skip to content

Commit

Permalink
fix empty caplog
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed May 29, 2024
1 parent 6558b46 commit 6bef53c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/genomics/test_podp_antismash_downloader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
from pathlib import Path
import pytest
from nplinker import setup_logging
from nplinker.defaults import GENOME_STATUS_FILENAME
from nplinker.genomics.antismash import GenomeStatus
from nplinker.genomics.antismash import podp_download_and_extract_antismash_data
Expand Down Expand Up @@ -196,6 +197,9 @@ def test_empty_id(download_root, extract_root, genome_status_file):
# Test `podp_download_and_extract_antismash_data` function
# when a genome record has already been downloaded and extracted
def test_caching(download_root, extract_root, genome_status_file, caplog):
# Enable logging to capture log messages
setup_logging()

genome_records = [
{
"genome_ID": {
Expand Down

0 comments on commit 6bef53c

Please sign in to comment.