Skip to content

Commit

Permalink
Merge pull request #432 from guardian/remove-books-and-arts-pillars
Browse files Browse the repository at this point in the history
Remove references to Books and Art pillars
  • Loading branch information
rowannekabalan authored Sep 11, 2024
2 parents ee6dba8 + 8144ebb commit d285ddd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ 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) || isPillar("Books")(content)
val isCulture: ContentFilter = content => isPillar("Arts")(content)

val predicates: List[(ContentFilter, Theme)] = List(
isSpecialReport -> SpecialReportTheme,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,12 +520,6 @@ class CapiModelEnrichmentFormatTest extends AnyFlatSpec with MockitoSugar with M
f.content.theme shouldEqual CulturePillar
}

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

f.content.theme shouldEqual CulturePillar
}

it should "return a theme of 'LifestylePillar' when has a pillarName of 'Lifestyle'" in {
val f = fixture
Expand Down

0 comments on commit d285ddd

Please sign in to comment.