Skip to content

Commit

Permalink
tests and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pjamesjoyce committed May 15, 2017
1 parent 19e0f6a commit cb4bb75
Show file tree
Hide file tree
Showing 26 changed files with 7,385 additions and 2 deletions.
1 change: 1 addition & 0 deletions .coverage
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!coverage.py: This is a private format, don't read it directly!{"lines":{"C:\\Users\\pjjoyce\\Dropbox\\04. REDMUD IP LCA Project\\04. Modelling\\lcopt\\tests\\test_learning.py":[1,4,5,2],"C:\\Users\\pjjoyce\\Dropbox\\04. REDMUD IP LCA Project\\04. Modelling\\lcopt\\tests\\test_model.py":[1,2,4,5,7]}}
1 change: 1 addition & 0 deletions tests/.coverage
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!coverage.py: This is a private format, don't read it directly!{"lines":{"C:\\Users\\pjjoyce\\AppData\\Local\\Continuum\\Miniconda3\\envs\\lcopt\\Lib\\site-packages\\lcopt\\__init__.py":[1,2],"C:\\Users\\pjjoyce\\AppData\\Local\\Continuum\\Miniconda3\\envs\\lcopt\\Lib\\site-packages\\lcopt\\io.py":[1,2,5,6,10,14,17,28,39,51,63,75,134,18,22,77,78,80,81,85,86,88,89,90,91,92,93,94,97,98,100,29,33,11,19,20,21,65,66,67,68,69,71,41,42,43,44],"C:\\Users\\pjjoyce\\AppData\\Local\\Continuum\\Miniconda3\\envs\\lcopt\\Lib\\site-packages\\lcopt\\model.py":[1,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,21,23,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,71,81,83,84,93,104,112,115,116,117,178,186,190,226,238,264,333,347,363,406,421,452,478,484,491,492,94,101,519,699,704,755,760,118,121,124,125,126,127,128,129,130,131,132,133,134,136,139,140,141,142,146,147,148,149,150,153,156,157,158,161,162,485,486,487,488,163,164,167,168,169,170,171,180,240,241,243,244,246,248,249,251,228,230,231,232,233,253,255,257,259,270,271,273,274,275,276,278,280,282,284,285,286,287,288,289,290,297,300,301,302,330,261],"C:\\Users\\pjjoyce\\AppData\\Local\\Continuum\\Miniconda3\\envs\\lcopt\\Lib\\site-packages\\lcopt\\interact.py":[1,2,3,4,5,6,7,9,11,13,37,43,53,181,190,195,210,235,283,312,316,334,348,357,433,477,484,492],"C:\\Users\\pjjoyce\\AppData\\Local\\Continuum\\Miniconda3\\envs\\lcopt\\Lib\\site-packages\\lcopt\\bw2_export.py":[1,2,3,4,5,7,9,16,25,55,69],"C:\\Users\\pjjoyce\\AppData\\Local\\Continuum\\Miniconda3\\envs\\lcopt\\Lib\\site-packages\\lcopt\\parameter_interpreter.py":[1,3,4,6,8,30,39,77],"C:\\Users\\pjjoyce\\AppData\\Local\\Continuum\\Miniconda3\\envs\\lcopt\\Lib\\site-packages\\lcopt\\bw2_parameter_utils.py":[1,2,4,6,7,9,12,16,13,14,19,26,49],"C:\\Users\\pjjoyce\\AppData\\Local\\Continuum\\Miniconda3\\envs\\lcopt\\Lib\\site-packages\\lcopt\\analysis.py":[1,3,5,6,8,10,12,13,15,17,18,20,21,29,46,60,77,115,153],"C:\\Users\\pjjoyce\\AppData\\Local\\Continuum\\Miniconda3\\envs\\lcopt\\Lib\\site-packages\\lcopt\\utils.py":[1,2,6,8],"C:\\Users\\pjjoyce\\AppData\\Local\\Continuum\\Miniconda3\\envs\\lcopt\\Lib\\site-packages\\lcopt\\bw2query.py":[2,3,6,7,8,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,32,39,48,49,52,57,65,66,71,74,83,95,98,101,104,107,110,113,117,125,126,129,138,144,171,172,181,186,191]}}
Binary file modified tests/__pycache__/test_model.cpython-36-PYTEST.pyc
Binary file not shown.
157 changes: 157 additions & 0 deletions tests/assets/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
body {
font-family: Helvetica, Arial, sans-serif;
font-size: 12px;
min-width: 1200px;
color: #999;
}
h2 {
font-size: 16px;
color: black;
}

p {
color: black;
}

a {
color: #999;
}

table {
border-collapse: collapse;
}

/******************************
* SUMMARY INFORMATION
******************************/

#environment td {
padding: 5px;
border: 1px solid #E6E6E6;
}

#environment tr:nth-child(odd) {
background-color: #f6f6f6;
}

/******************************
* TEST RESULT COLORS
******************************/
span.passed, .passed .col-result {
color: green;
}
span.skipped, span.xfailed, span.rerun, .skipped .col-result, .xfailed .col-result, .rerun .col-result {
color: orange;
}
span.error, span.failed, span.xpassed, .error .col-result, .failed .col-result, .xpassed .col-result {
color: red;
}


/******************************
* RESULTS TABLE
*
* 1. Table Layout
* 2. Extra
* 3. Sorting items
*
******************************/

/*------------------
* 1. Table Layout
*------------------*/

#results-table {
border: 1px solid #e6e6e6;
color: #999;
font-size: 12px;
width: 100%
}

#results-table th, #results-table td {
padding: 5px;
border: 1px solid #E6E6E6;
text-align: left
}
#results-table th {
font-weight: bold
}

/*------------------
* 2. Extra
*------------------*/

.log:only-child {
height: inherit
}
.log {
background-color: #e6e6e6;
border: 1px solid #e6e6e6;
color: black;
display: block;
font-family: "Courier New", Courier, monospace;
height: 230px;
overflow-y: scroll;
padding: 5px;
white-space: pre-wrap
}
div.image {
border: 1px solid #e6e6e6;
float: right;
height: 240px;
margin-left: 5px;
overflow: hidden;
width: 320px
}
div.image img {
width: 320px
}
.collapsed {
display: none;
}
.expander::after {
content: " (show details)";
color: #BBB;
font-style: italic;
cursor: pointer;
}
.collapser::after {
content: " (hide details)";
color: #BBB;
font-style: italic;
cursor: pointer;
}

/*------------------
* 3. Sorting items
*------------------*/
.sortable {
cursor: pointer;
}

.sort-icon {
font-size: 0px;
float: left;
margin-right: 5px;
margin-top: 5px;
/*triangle*/
width: 0;
height: 0;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
}

.inactive .sort-icon {
/*finish triangle*/
border-top: 8px solid #E6E6E6;
}

.asc.active .sort-icon {
/*finish triangle*/
border-bottom: 8px solid #999;
}

.desc.active .sort-icon {
/*finish triangle*/
border-top: 8px solid #999;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb4bb75

Please sign in to comment.