Skip to content

Commit

Permalink
Restore check for Arts
Browse files Browse the repository at this point in the history
  • Loading branch information
rowannekabalan committed Sep 10, 2024
1 parent 88e4eca commit 8144ebb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,14 +186,15 @@ object CapiModelEnrichment {
(tagExistsWithId("tone/comment")(content) && isPillar("News")(content)) ||
(tagExistsWithId("tone/letters")(content) && isPillar("News")(content)) ||
isPillar("Opinion")(content)
val isCulture: ContentFilter = content => isPillar("Arts")(content)

val predicates: List[(ContentFilter, Theme)] = List(
isSpecialReport -> SpecialReportTheme,
isSpecialReportAlt -> SpecialReportAltTheme,
tagExistsWithId("tone/advertisement-features") -> Labs,
isOpinion -> OpinionPillar,
isPillar("Sport") -> SportPillar,
isPillar("Culture") -> CulturePillar,
isCulture -> CulturePillar,
isPillar("Lifestyle") -> LifestylePillar
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,9 +513,9 @@ class CapiModelEnrichmentFormatTest extends AnyFlatSpec with MockitoSugar with M
f.content.theme shouldEqual SportPillar
}

it should "return a theme of 'CulturePillar' when has a pillarName of 'Culture'" in {
it should "return a theme of 'CulturePillar' when has a pillarName of 'Arts'" in {
val f = fixture
when(f.content.pillarName) thenReturn Some("Culture")
when(f.content.pillarName) thenReturn Some("Arts")

f.content.theme shouldEqual CulturePillar
}
Expand Down

0 comments on commit 8144ebb

Please sign in to comment.