Projet

Général

Profil

0005-tests-remove-dead-test-41814.patch

Benjamin Dauvergne, 20 avril 2020 20:17

Télécharger (3,56 ko)

Voir les différences:

Subject: [PATCH 5/5] tests: remove dead test (#41814)

The deleted test used a dimension "retard_stat" which was not defined on
the target cube, but worked nonetheless since the list of JSON
dimensions was wrongly computed from a table named "formdata" and not
the fact table of the used cube, which is now fixed.
 tests/fixtures/schema2/01_fixture.json | 25 +----------
 tests/fixtures/schema2/tables.json     | 60 +-------------------------
 2 files changed, 2 insertions(+), 83 deletions(-)
tests/fixtures/schema2/01_fixture.json
336 336
        "model": "visualization.visualization",
337 337
        "pk": 19
338 338
    },
339
    {
340
        "fields": {
341
            "name": "zz_old_Renseignement D\u00e9chets - Demandes par type de retard - Ann\u00e9e en cours",
342
            "parameters": {
343
                "cube": "formdata_demander_des_renseignements_sur_les_dechets",
344
                "drilldown_x": "retard_stat",
345
                "drilldown_y": "receipt_time__month",
346
                "filters": {
347
                    "receipt_time": {
348
                        "end": "l'ann\u00e9e prochaine",
349
                        "start": "cette ann\u00e9e"
350
                    }
351
                },
352
                "loop": "",
353
                "measure": "count",
354
                "representation": "table",
355
                "warehouse": "services_demarches_lametro_fr"
356
            },
357
            "slug": "zz_old_renseignement-dechets-demandes-par-type-de-retard"
358
        },
359
        "model": "visualization.visualization",
360
        "pk": 20
361
    },
362 339
    {
363 340
        "fields": {
364 341
            "name": "zz_old_Tous formulaires - Demandes par heure - Ann\u00e9e en cours",
......
10803 10780
        "model": "visualization.visualization",
10804 10781
        "pk": 538
10805 10782
    }
10806
]
10783
]
tests/fixtures/schema2/tables.json
135909 135909
            "13999"
135910 135910
        ]
135911 135911
    ],
135912
    "zz_old_Renseignement D\u00e9chets - Demandes par type de retard - Ann\u00e9e en cours": [
135913
        [
135914
            "",
135915
            "Aucun(e)"
135916
        ],
135917
        [
135918
            "janvier",
135919
            "770"
135920
        ],
135921
        [
135922
            "f\u00e9vrier",
135923
            "596"
135924
        ],
135925
        [
135926
            "mars",
135927
            "1039"
135928
        ],
135929
        [
135930
            "avril",
135931
            "1151"
135932
        ],
135933
        [
135934
            "mai",
135935
            "1399"
135936
        ],
135937
        [
135938
            "juin",
135939
            "997"
135940
        ],
135941
        [
135942
            "juillet",
135943
            "1047"
135944
        ],
135945
        [
135946
            "ao\u00fbt",
135947
            "1085"
135948
        ],
135949
        [
135950
            "septembre",
135951
            "1498"
135952
        ],
135953
        [
135954
            "octobre",
135955
            "2934"
135956
        ],
135957
        [
135958
            "novembre",
135959
            "1337"
135960
        ],
135961
        [
135962
            "d\u00e9cembre",
135963
            "208"
135964
        ],
135965
        [
135966
            "Total",
135967
            "14061"
135968
        ]
135969
    ],
135970 135912
    "zz_old_Renseignement D\u00e9chets - Demandes par type et par commune": [
135971 135913
        [
135972 135914
            "",
......
167015 166957
            "66"
167016 166958
        ]
167017 166959
    ]
167018
}
166960
}
167019
-