@@ -677,68 +677,6 @@ def setUp(self):
677677 self .admin = FeedAdmin (model = Feed , admin_site = AdminSite ())
678678 self .user = User .objects .create_superuser ("admin" , "admin@test.com" , "password" )
679679
680- def test_admin_configuration (self ):
681- """Test that FeedAdmin is properly configured."""
682- # Test list_display configuration
683- expected_list_display = [
684- "name" ,
685- "fetch_feed" ,
686- "generate_feed" ,
687- "target_language" ,
688- "translation_options" ,
689- "show_filters" ,
690- "fetch_info" ,
691- "cost_info" ,
692- "show_tags" ,
693- ]
694- self .assertEqual (self .admin .list_display , expected_list_display )
695-
696- # Test search_fields configuration
697- expected_search_fields = ["name" , "feed_url" , "slug" , "author" , "link" ]
698- self .assertEqual (self .admin .search_fields , expected_search_fields )
699-
700- # Test list_filter configuration
701- expected_list_filters = [
702- "tags" ,
703- "fetch_status" ,
704- "translation_status" ,
705- "translate_title" ,
706- "translate_content" ,
707- "summary" ,
708- ]
709- self .assertEqual (self .admin .list_filter , expected_list_filters )
710-
711- # Test readonly_fields configuration
712- expected_readonly_fields = [
713- "fetch_feed" ,
714- "generate_feed" ,
715- "fetch_status" ,
716- "translation_status" ,
717- "total_tokens" ,
718- "total_characters" ,
719- "last_fetch" ,
720- "last_translate" ,
721- "show_log" ,
722- ]
723- self .assertEqual (self .admin .readonly_fields , expected_readonly_fields )
724-
725- # Test autocomplete_fields configuration
726- expected_autocomplete_fields = ["filters" , "tags" ]
727- self .assertEqual (self .admin .autocomplete_fields , expected_autocomplete_fields )
728-
729- # Test actions configuration
730- expected_actions = [
731- "feed_force_update" ,
732- "export_original_feed_as_opml" ,
733- "export_translated_feed_as_opml" ,
734- "feed_batch_modify" ,
735- "clean_translated_content" ,
736- "clean_ai_summary" ,
737- ]
738- self .assertEqual (
739- [action .__name__ for action in self .admin .actions ], expected_actions
740- )
741-
742680 def test_fieldsets_configuration (self ):
743681 """Test that fieldsets are properly configured."""
744682 expected_fieldsets = [
0 commit comments