0 votes
in Python by
Test Package structure

1 Answer

0 votes
by

Now let's create a test package by following the below steps.

Create a folder named Project1.

Create a subfolder named test in Project1.

Create a file named __init__.py in Project1/test folder.

Move the file test_module1.py into Project1/test folder.

Add the expression into all = ['test_module1'] into __init__.py file and save it.

The folder test now acts like a test package. You can also add any number of test modules to test directory.

Related questions

0 votes
asked Aug 30, 2020 in Python by sharadyadav1986
0 votes
asked Aug 30, 2020 in Python by sharadyadav1986
...