Search code examples
pythondjangopathfilesystemstest-coverage

Different structure path of python base program


when i works with coverage i see that when i want to run test with it i must code for example like "coverage run manage.py test src.apps.accounts.tests " in terminal and when i want see the result i must write "coverage report --include=src/apps/service/accounts/* -m " .my question is why we use ". " for run and use "/ " for see the result? and in general when we should use "." and when we should use "/" (this example did not only one case i see so i want a way to understand when should use each other of them) *in advance i am tank you for get me full solution and read the my question that write with my weak english understand.


Solution

  • "." is the pythonic way of writing paths, "/" is for general purpose

    When you are including apps in your settings.py, you will write it with "."

    When you are saving a file on your computer (with notepad or any other software), you will use "/"