![]() └── test_fibonacci_primes.py <- copy test_fibonacci_prime function here ├── my_simple_primes.py <- copy prime_numbers function definition here ![]() ├── fibonacci.py <- define functions fibonacci & fibonacci_primes Please create a folder fibonacci_primes and files my_simple_primes.py, fibonacci.py and test_fibonacci_primes.py within the folder as shown below: fibonacci_primes <- create this folder within. This also serves as your introduction to modules in python. To illustrate its use, let us make up a simple project structure as follows. Please install pytest in the usual way you install any other python package. If you run pytest within a folder (directory), it will run all test functions it finds in all files of the form test_*.py or *_test.py in the current directory and its subdirectories. One of the python modules that facilitates automated testing in python codes
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |