Actions
Testing #3061
closedxmera Omnia - Collection #3085: Maintain several plugins to be compatible
RM: Failing unit tests due to changes w.r.t. admin_projects
Start date:
03/17/2025
Due date:
03/17/2025
% Done:
100%
Estimated time:
Compatible Redmine Version:
5.1.z
Pull Request Link:
Description
ERROR QueryTest#test_filter_project_parent_id_with_my_bookmarks (237.77s)
Minitest::UnexpectedError: NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"parent_id"=>{:operator=>"=", :values=>["bookmarks"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {}>
plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
app/models/project_query.rb:121:in `results_scope'
test/unit/query_test.rb:1363:in `test_filter_project_parent_id_with_my_bookmarks'
ERROR QueryTest#test_filter_project_parent_id_with_my_projects (240.32s)
Minitest::UnexpectedError: NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"parent_id"=>{:operator=>"=", :values=>["mine"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {}>
plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
app/models/project_query.rb:121:in `results_scope'
test/unit/query_test.rb:1349:in `test_filter_project_parent_id_with_my_projects'
ERROR QueryTest#test_filter_my_bookmarks (241.73s)
Minitest::UnexpectedError: NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "_", filters: {"id"=>{:operator=>"=", :values=>["bookmarks"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {}>
plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
app/models/project_query.rb:121:in `results_scope'
test/unit/query_test.rb:1328:in `test_filter_my_bookmarks'
ERROR ProjectQueryTest#test_base_scope_should_return_all_projects_when_admin_projects_is_set (263.99s)
Minitest::UnexpectedError: NoMethodError: undefined method `admin_projects=' for #<ProjectQuery id: nil, project_id: nil, name: "", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {}>
plugins/redmine_project_types/test/unit/patches/project_query_test_patch.rb:29:in `block in <class:ProjectQueryTest>'
ERROR ProjectQueryTest#test_base_scope_should_return_visible_projects (264.56s)
Minitest::UnexpectedError: NoMethodError: undefined method `admin_projects' for #<ProjectQuery id: nil, project_id: nil, name: "", filters: {"status"=>{:operator=>"=", :values=>["1"]}}, user_id: 0, column_names: nil, sort_criteria: [], group_by: nil, type: "ProjectQuery", visibility: 0, options: {}>
plugins/redmine_project_types/lib/project_types/overrides/project_query_patch.rb:68:in `base_scope'
plugins/redmine_project_types/test/unit/patches/project_query_test_patch.rb:37:in `block in <class:ProjectQueryTest>'
FAIL ProjectAdminQueryTest#test_project_statuses_values_should_return_all_statuses (313.28s)
--- expected
+++ actual
@@ -1 +1 @@
-[["active", "1"], ["closed", "5"], ["archived", "9"], ["scheduled for deletion", "10"]]
+[["actif", "1"], ["fermé", "5"], ["archivé", "9"], ["planifié pour suppression", "10"]]
test/unit/project_admin_query_test.rb:99:in `test_project_statuses_values_should_return_all_statuses'
Actions