Skip to content

Commit

Permalink
test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Aug 12, 2024
1 parent 7f98277 commit 8bae574
Show file tree
Hide file tree
Showing 5 changed files with 316 additions and 4 deletions.
Binary file added .coverage
Binary file not shown.
6 changes: 3 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
with:
coverageFile: coverage.xml
token: ${{ secrets.GITHUB_TOKEN }}
thresholdAll: 0.8
thresholdNew: 0.8
thresholdModified: 0.8
thresholdAll: 0.0
thresholdNew: 0.0
thresholdModified: 0.0
if: github.event_name == 'pull_request'
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ update:

# Run project tests
test:
poetry run pytest
poetry run pytest --cov-report xml --cov=athena_federation

# Lint code using flake8
lint:
Expand Down
310 changes: 310 additions & 0 deletions coverage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,310 @@
<?xml version="1.0" ?>
<coverage version="7.6.1" timestamp="1723498461179" lines-valid="261" lines-covered="124" line-rate="0.4751" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.6.1 -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
<source>/Users/ernest/GitHub/athena-federation-python-sdk/athena_federation</source>
</sources>
<packages>
<package name="." line-rate="0.4751" branch-rate="0" complexity="0">
<classes>
<class name="__init__.py" filename="__init__.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines>
<line number="3" hits="1"/>
<line number="6" hits="1"/>
<line number="7" hits="1"/>
<line number="8" hits="1"/>
<line number="9" hits="1"/>
<line number="10" hits="1"/>
</lines>
</class>
<class name="athena_data_source.py" filename="athena_data_source.py" complexity="0" line-rate="0.68" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="2" hits="1"/>
<line number="4" hits="1"/>
<line number="7" hits="1"/>
<line number="16" hits="1"/>
<line number="17" hits="0"/>
<line number="19" hits="1"/>
<line number="20" hits="1"/>
<line number="22" hits="0"/>
<line number="24" hits="1"/>
<line number="25" hits="1"/>
<line number="29" hits="0"/>
<line number="31" hits="1"/>
<line number="32" hits="1"/>
<line number="36" hits="0"/>
<line number="38" hits="1"/>
<line number="50" hits="0"/>
<line number="52" hits="1"/>
<line number="53" hits="1"/>
<line number="60" hits="0"/>
<line number="64" hits="1"/>
<line number="75" hits="0"/>
<line number="77" hits="1"/>
<line number="78" hits="1"/>
<line number="88" hits="0"/>
</lines>
</class>
<class name="batch_writer.py" filename="batch_writer.py" complexity="0" line-rate="0.3429" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="3" hits="1"/>
<line number="4" hits="1"/>
<line number="6" hits="1"/>
<line number="9" hits="1"/>
<line number="17" hits="1"/>
<line number="18" hits="0"/>
<line number="19" hits="0"/>
<line number="20" hits="0"/>
<line number="21" hits="0"/>
<line number="22" hits="0"/>
<line number="23" hits="0"/>
<line number="25" hits="1"/>
<line number="26" hits="1"/>
<line number="27" hits="0"/>
<line number="29" hits="1"/>
<line number="30" hits="0"/>
<line number="34" hits="0"/>
<line number="35" hits="0"/>
<line number="37" hits="1"/>
<line number="38" hits="0"/>
<line number="42" hits="1"/>
<line number="43" hits="0"/>
<line number="44" hits="0"/>
<line number="49" hits="0"/>
<line number="50" hits="0"/>
<line number="51" hits="0"/>
<line number="52" hits="0"/>
<line number="54" hits="1"/>
<line number="55" hits="0"/>
<line number="56" hits="0"/>
<line number="57" hits="0"/>
<line number="58" hits="0"/>
<line number="59" hits="0"/>
<line number="60" hits="0"/>
</lines>
</class>
<class name="lambda_handler.py" filename="lambda_handler.py" complexity="0" line-rate="0.254" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="2" hits="1"/>
<line number="3" hits="1"/>
<line number="4" hits="1"/>
<line number="5" hits="1"/>
<line number="6" hits="1"/>
<line number="9" hits="1"/>
<line number="10" hits="1"/>
<line number="11" hits="0"/>
<line number="12" hits="0"/>
<line number="15" hits="0"/>
<line number="16" hits="0"/>
<line number="18" hits="1"/>
<line number="28" hits="0"/>
<line number="29" hits="0"/>
<line number="30" hits="0"/>
<line number="38" hits="0"/>
<line number="40" hits="1"/>
<line number="41" hits="0"/>
<line number="45" hits="1"/>
<line number="46" hits="0"/>
<line number="47" hits="0"/>
<line number="49" hits="1"/>
<line number="50" hits="0"/>
<line number="51" hits="0"/>
<line number="52" hits="0"/>
<line number="53" hits="0"/>
<line number="54" hits="0"/>
<line number="55" hits="0"/>
<line number="57" hits="1"/>
<line number="58" hits="0"/>
<line number="59" hits="0"/>
<line number="60" hits="0"/>
<line number="61" hits="0"/>
<line number="66" hits="1"/>
<line number="70" hits="0"/>
<line number="71" hits="0"/>
<line number="72" hits="0"/>
<line number="76" hits="1"/>
<line number="77" hits="0"/>
<line number="78" hits="0"/>
<line number="79" hits="0"/>
<line number="80" hits="0"/>
<line number="81" hits="0"/>
<line number="82" hits="0"/>
<line number="91" hits="0"/>
<line number="95" hits="1"/>
<line number="98" hits="0"/>
<line number="99" hits="0"/>
<line number="100" hits="0"/>
<line number="101" hits="0"/>
<line number="102" hits="0"/>
<line number="107" hits="0"/>
<line number="108" hits="0"/>
<line number="109" hits="0"/>
<line number="114" hits="0"/>
<line number="115" hits="0"/>
<line number="116" hits="0"/>
<line number="118" hits="0"/>
<line number="119" hits="0"/>
<line number="120" hits="0"/>
<line number="133" hits="0"/>
<line number="136" hits="0"/>
</lines>
</class>
<class name="models.py" filename="models.py" complexity="0" line-rate="0.4706" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="3" hits="1"/>
<line number="4" hits="1"/>
<line number="7" hits="1"/>
<line number="10" hits="1"/>
<line number="11" hits="1"/>
<line number="12" hits="0"/>
<line number="13" hits="0"/>
<line number="14" hits="0"/>
<line number="16" hits="1"/>
<line number="17" hits="0"/>
<line number="26" hits="1"/>
<line number="27" hits="1"/>
<line number="29" hits="1"/>
<line number="30" hits="0"/>
<line number="31" hits="0"/>
<line number="33" hits="1"/>
<line number="34" hits="0"/>
<line number="42" hits="1"/>
<line number="43" hits="1"/>
<line number="44" hits="0"/>
<line number="45" hits="0"/>
<line number="47" hits="1"/>
<line number="48" hits="0"/>
<line number="51" hits="1"/>
<line number="52" hits="1"/>
<line number="54" hits="1"/>
<line number="55" hits="0"/>
<line number="56" hits="0"/>
<line number="58" hits="1"/>
<line number="59" hits="0"/>
<line number="61" hits="1"/>
<line number="62" hits="0"/>
<line number="71" hits="1"/>
<line number="72" hits="1"/>
<line number="74" hits="1"/>
<line number="77" hits="0"/>
<line number="78" hits="0"/>
<line number="79" hits="0"/>
<line number="80" hits="0"/>
<line number="81" hits="0"/>
<line number="83" hits="1"/>
<line number="84" hits="0"/>
<line number="94" hits="1"/>
<line number="95" hits="1"/>
<line number="97" hits="1"/>
<line number="98" hits="0"/>
<line number="99" hits="0"/>
<line number="100" hits="0"/>
<line number="101" hits="0"/>
<line number="103" hits="1"/>
<line number="107" hits="0"/>
<line number="108" hits="0"/>
<line number="109" hits="0"/>
<line number="110" hits="0"/>
<line number="111" hits="0"/>
<line number="112" hits="0"/>
<line number="118" hits="1"/>
<line number="121" hits="0"/>
<line number="122" hits="0"/>
<line number="130" hits="0"/>
<line number="139" hits="1"/>
<line number="140" hits="1"/>
<line number="142" hits="1"/>
<line number="143" hits="0"/>
<line number="144" hits="0"/>
<line number="146" hits="1"/>
<line number="147" hits="0"/>
<line number="156" hits="1"/>
<line number="157" hits="1"/>
<line number="159" hits="1"/>
<line number="160" hits="0"/>
<line number="161" hits="0"/>
<line number="162" hits="0"/>
<line number="164" hits="1"/>
<line number="165" hits="0"/>
<line number="177" hits="1"/>
<line number="178" hits="1"/>
<line number="180" hits="1"/>
<line number="181" hits="0"/>
<line number="182" hits="0"/>
<line number="183" hits="0"/>
<line number="184" hits="0"/>
<line number="186" hits="1"/>
<line number="187" hits="0"/>
</lines>
</class>
<class name="sdk.py" filename="sdk.py" complexity="0" line-rate="0.7037" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="3" hits="1"/>
<line number="6" hits="1"/>
<line number="18" hits="1"/>
<line number="19" hits="1"/>
<line number="20" hits="0"/>
<line number="22" hits="1"/>
<line number="23" hits="1"/>
<line number="29" hits="0"/>
<line number="31" hits="1"/>
<line number="32" hits="1"/>
<line number="34" hits="0"/>
<line number="36" hits="1"/>
<line number="37" hits="1"/>
<line number="39" hits="0"/>
<line number="41" hits="1"/>
<line number="42" hits="1"/>
<line number="44" hits="0"/>
<line number="46" hits="1"/>
<line number="47" hits="1"/>
<line number="49" hits="0"/>
<line number="51" hits="1"/>
<line number="52" hits="1"/>
<line number="54" hits="0"/>
<line number="56" hits="1"/>
<line number="57" hits="1"/>
<line number="59" hits="0"/>
</lines>
</class>
<class name="utils.py" filename="utils.py" complexity="0" line-rate="0.7" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="2" hits="1"/>
<line number="4" hits="1"/>
<line number="7" hits="1"/>
<line number="9" hits="1"/>
<line number="10" hits="1"/>
<line number="16" hits="0"/>
<line number="18" hits="1"/>
<line number="19" hits="1"/>
<line number="20" hits="0"/>
<line number="22" hits="1"/>
<line number="23" hits="1"/>
<line number="25" hits="0"/>
<line number="30" hits="1"/>
<line number="31" hits="1"/>
<line number="36" hits="0"/>
<line number="37" hits="0"/>
<line number="39" hits="1"/>
<line number="40" hits="1"/>
<line number="44" hits="0"/>
</lines>
</class>
</classes>
</package>
</packages>
</coverage>
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ filterwarnings = [
"error",
# change in Python 3.12 beta causes warning from inside pytest
"ignore:ast:DeprecationWarning",
"ignore:attribute:DeprecationWarning",

]

0 comments on commit 8bae574

Please sign in to comment.