# Flask Demo Testing

```
flask_demo> python3 -m unittest tests/test_01.py -v
```

```
flask_demo> python3 -m unittest tests/test_02.py -v
```

```
flask_demo> python3 -m unittest tests/test_03.py -v
```

```
flask_demo> python3 -m unittest tests/test_04.py -v
```



To run all test files in one go

```
flask_demo> python3 -m unittest discover tests -v
```

To test based on pattern

<pre><code><strong>flask_demo> python3 -m unittest tests/t*_04*.py -v
</strong></code></pre>

**To skip a partition function inside a file**

@unittest.skip() - to skip a particular test

