You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 27, 2026. It is now read-only.
Reorganize projects to be able to test functions #87
As discussed in #85, most of the platform features are not tested yet. In order to solve this, we should move all non-frontend operations to a python folder for testing purposes.
Basically splitting the project into backend & frontend:
Thanks for the idea, it would indeed be great to test more systematically the logic in this repository! I wanted to discuss this in an issue before implementation to make sure I understand how to organise this.
Should the "python folder" that you mention look like the services sub-folder? We would have an __init__.py file in it, as well as another Python script storing the functions. Then, this sort of local package would be imported in main.py or in the other files. Is this correct?
Sorry for the maybe simple questions, but I probably lack some basic notions and I still need this kind of clarifications 😊
More or so, yes ! I think we could have something like this in the source folder:
"backend" all ops not related to display
"frontend"
"main.py" that would the only python script wth args to run the app (so a much lighter script than the current one which has both backend & frontend operations)
I understand the need of testing and reshaping the project-tree to do so.
But splitting back and front isn't that easy as dash mix both (as you said @frgfm the actual main.py gathers py function that triggers dash objects for frontends purposes.
So the solution would be to create a brand new test folder with a test flask app + a new test.py that maps actual main.py core python functions and API interactions (without dash basically) ?
Oh so you don't think there are functions we could disentangle from dash main.py ?
I thought we could, but if that's not possible, I might have been wrong with this suggestion 😅
Activity
pechouc commentedon Sep 11, 2022
Thanks for the idea, it would indeed be great to test more systematically the logic in this repository! I wanted to discuss this in an issue before implementation to make sure I understand how to organise this.
Should the "python folder" that you mention look like the
servicessub-folder? We would have an__init__.pyfile in it, as well as another Python script storing the functions. Then, this sort of local package would be imported inmain.pyor in the other files. Is this correct?Sorry for the maybe simple questions, but I probably lack some basic notions and I still need this kind of clarifications 😊
frgfm commentedon Sep 12, 2022
More or so, yes ! I think we could have something like this in the source folder:
(of course the naming of folders can be changed)
Akilditu commentedon Sep 13, 2022
I understand the need of testing and reshaping the project-tree to do so.
But splitting back and front isn't that easy as dash mix both (as you said @frgfm the actual main.py gathers py function that triggers dash objects for frontends purposes.
So the solution would be to create a brand new test folder with a test flask app + a new test.py that maps actual main.py core python functions and API interactions (without dash basically) ?
frgfm commentedon Sep 14, 2022
Oh so you don't think there are functions we could disentangle from dash main.py ?
I thought we could, but if that's not possible, I might have been wrong with this suggestion 😅