Skip to content

Commit 3e09f23

Browse files
committed
dding pytest coverage instructions
1 parent 828b945 commit 3e09f23

10 files changed

+70
-0
lines changed

tests/test_collection.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""
2+
Using pytest to create unit tests for pvdeg
3+
4+
to run unit tests, run pytest from the command line in the pvdeg directory
5+
to run coverage tests, run py.test --cov-report term-missing --cov=pvdeg
6+
"""
7+
18
import pytest
29
import os
310
import pandas as pd

tests/test_degradation.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""
2+
Using pytest to create unit tests for pvdeg
3+
4+
to run unit tests, run pytest from the command line in the pvdeg directory
5+
to run coverage tests, run py.test --cov-report term-missing --cov=pvdeg
6+
"""
7+
18
import os
29
import pandas as pd
310
import numpy as np

tests/test_design.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""
2+
Using pytest to create unit tests for pvdeg
3+
4+
to run unit tests, run pytest from the command line in the pvdeg directory
5+
to run coverage tests, run py.test --cov-report term-missing --cov=pvdeg
6+
"""
7+
18
import os
29
import pytest
310
from pvdeg import design, weather, humidity, TEST_DATA_DIR

tests/test_fatigue.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""
2+
Using pytest to create unit tests for pvdeg
3+
4+
to run unit tests, run pytest from the command line in the pvdeg directory
5+
to run coverage tests, run py.test --cov-report term-missing --cov=pvdeg
6+
"""
7+
18
import os
29
import pytest
310
import pandas as pd

tests/test_humidity.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""
2+
Using pytest to create unit tests for pvdeg
3+
4+
to run unit tests, run pytest from the command line in the pvdeg directory
5+
to run coverage tests, run py.test --cov-report term-missing --cov=pvdeg
6+
"""
7+
18
import os
29
import json
310
import pandas as pd

tests/test_spectral.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""
2+
Using pytest to create unit tests for pvdeg
3+
4+
to run unit tests, run pytest from the command line in the pvdeg directory
5+
to run coverage tests, run py.test --cov-report term-missing --cov=pvdeg
6+
"""
7+
18
import os
29
import json
310
import pandas as pd

tests/test_standards.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""
2+
Using pytest to create unit tests for pvdeg
3+
4+
to run unit tests, run pytest from the command line in the pvdeg directory
5+
to run coverage tests, run py.test --cov-report term-missing --cov=pvdeg
6+
"""
7+
18
import os
29
import json
310
import pytest

tests/test_temperature.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""
2+
Using pytest to create unit tests for pvdeg
3+
4+
to run unit tests, run pytest from the command line in the pvdeg directory
5+
to run coverage tests, run py.test --cov-report term-missing --cov=pvdeg
6+
"""
7+
18
import os
29
import pandas as pd
310
import pvdeg

tests/test_utilities.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""
2+
Using pytest to create unit tests for pvdeg
3+
4+
to run unit tests, run pytest from the command line in the pvdeg directory
5+
to run coverage tests, run py.test --cov-report term-missing --cov=pvdeg
6+
"""
7+
18
import os
29
import pandas as pd
310
import pvdeg

tests/test_weather.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""
2+
Using pytest to create unit tests for pvdeg
3+
4+
to run unit tests, run pytest from the command line in the pvdeg directory
5+
to run coverage tests, run py.test --cov-report term-missing --cov=pvdeg
6+
"""
7+
18
import os
29
import pandas as pd
310
import pvdeg

0 commit comments

Comments
 (0)