From 1cbf23e7e7c88100d8b24afa708171262a137bcc Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Wed, 15 Nov 2023 09:11:30 +0100 Subject: [PATCH] (test) Don't fail test if atags.parquet is not in ~vlofgren --- .../nu/marginalia/atags/DomainAnchorTagsImplTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/features-convert/anchor-keywords/src/test/java/nu/marginalia/atags/DomainAnchorTagsImplTest.java b/code/features-convert/anchor-keywords/src/test/java/nu/marginalia/atags/DomainAnchorTagsImplTest.java index b18f6e4b..ee555ca5 100644 --- a/code/features-convert/anchor-keywords/src/test/java/nu/marginalia/atags/DomainAnchorTagsImplTest.java +++ b/code/features-convert/anchor-keywords/src/test/java/nu/marginalia/atags/DomainAnchorTagsImplTest.java @@ -8,6 +8,7 @@ import nu.marginalia.model.EdgeUrl; import nu.marginalia.util.TestLanguageModels; import org.junit.jupiter.api.Test; +import java.nio.file.Files; import java.nio.file.Path; import java.sql.SQLException; import java.util.List; @@ -17,6 +18,14 @@ class DomainAnchorTagsImplTest { @Test void getAnchorTags() { Path atagsPath = Path.of("/home/vlofgren/atags.parquet"); + + if (!Files.exists(atagsPath)) { + // Not really practical to ship a multi-gb file in the git repo + // atags.parquet is available at https://downloads.marginalia.nu/exports + + return; // skip test + } + try (var domainAnchorTags = new AnchorTagsImpl( atagsPath, List.of(new EdgeDomain("www.chiark.greenend.org.uk")) )) {