@@ -635,31 +635,6 @@ def test_enabled_libraries_includes_filtering_settings(
635635 assert library2_info .filtered_audiences == ()
636636 assert library2_info .filtered_genres == ()
637637
638- def test_marc_enabled_collections (
639- self ,
640- db : DatabaseTransactionFixture ,
641- marc_exporter_fixture : MarcExporterFixture ,
642- ) -> None :
643- library1 = marc_exporter_fixture .library1
644-
645- # No collections have export_marc_records enabled.
646- assert MarcExporter .marc_enabled_collections (db .session , library1 ) == []
647-
648- # Enable collection1 (associated with library1) and collection3 (associated with library2 only).
649- marc_exporter_fixture .collection1 .export_marc_records = True
650- marc_exporter_fixture .collection3 .export_marc_records = True
651-
652- result = MarcExporter .marc_enabled_collections (db .session , library1 )
653- assert result == [marc_exporter_fixture .collection1 ]
654-
655- # Enable collection2, which is also associated with library1.
656- marc_exporter_fixture .collection2 .export_marc_records = True
657- result = MarcExporter .marc_enabled_collections (db .session , library1 )
658- assert set (result ) == {
659- marc_exporter_fixture .collection1 ,
660- marc_exporter_fixture .collection2 ,
661- }
662-
663638 def test_files_for_reset (
664639 self ,
665640 db : DatabaseTransactionFixture ,
0 commit comments