This change add a basic folder structure for the plugin. In the src tree the following folders are created views: the django application views api: the apis exposed to the the views datasource: a module to encapsulate how data is retrived static: static content including any javascript templates: django templates the tests folder are extened to also add functional tests. unit tests test indiviual functions within a single module mocking most of there depencies. i.e. any calls into horizon. functional tests will prefer less mocks allowing more complciate logic but will not requrie an external web server to host the plugin. later cypress tests will be added to test end to end functionaltiy. The atoms of the plugin shoudl be tested with unit tests The workflows and over all logic with funtional tests The end to end functionality with cypress tests. each will build on each other with more complexity but getting closer and closer to the end user workflow. While the cypress tests will likely use the fake datasouce it will not use any mocking. Change-Id: I091d42c669f8320c6eee2d13bfc6abdde3d27d5c
7 lines
110 B
Python
7 lines
110 B
Python
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# our unit tests should not need to depend on horizon.
|
|
|
|
DEBUG = True
|