This repository was archived by the owner on Jul 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +48
-6
lines changed Expand file tree Collapse file tree 5 files changed +48
-6
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ __pycache__/
66# C extensions
77* .so
88
9+ .coverage
10+ coverage.xml
11+
912# Distribution / packaging
1013.Python
1114build /
@@ -26,6 +29,8 @@ share/python-wheels/
2629.installed.cfg
2730* .egg
2831MANIFEST
32+ coverage.xml
33+ .coverage
2934
3035# PyInstaller
3136# Usually these files are written by a python script from a template
@@ -120,4 +125,5 @@ venv.bak/
120125dmypy.json
121126
122127# Pyre type checker
123- .pyre /
128+ .pyre /
129+ local.sh
Original file line number Diff line number Diff line change 1+ local_token = ${LOCAL_TOKEN}
2+ production_token = ${PRODUCTION_TOKEN}
3+
4+ test :
5+ rm coverage.xml || true
6+ rm .coverage || true
7+ python -m pytest --cov=./
8+
9+ report.local :
10+ ./local.sh -t ${local_token} -F flagsecond
11+
12+ show_vars :
13+ echo ${local_token}
14+ echo ${production_token}
15+
16+ full.local :
17+ ${MAKE} download_local
18+ ${MAKE} test
19+ ${MAKE} report.local
20+
21+ download_local :
22+ curl -s http://localhost/bash > local.sh
23+ chmod +x ./local.sh
Original file line number Diff line number Diff line change 1+ def fib (n ):
2+ if n <= 1 :
3+ return 0
4+ return fib (n - 1 ) + fib (n - 2 )
5+
6+
7+ def untested_code (a ):
8+ raise Exception ()
Original file line number Diff line number Diff line change 1- import awesome
2-
3-
4- def test_something ():
5- assert awesome .smile () == 1
Original file line number Diff line number Diff line change 1+ import awesome
2+ from awesome .code_fib import fib
3+
4+
5+ def test_something ():
6+ assert awesome .smile () == ':)'
7+
8+
9+ def test_a ():
10+ assert fib (2 ) == 0
You can’t perform that action at this time.
0 commit comments