commit:     becb775fe9b788197b46beabea8ecf90a006a76d
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 22 02:53:10 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Jun 22 02:56:20 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=becb775f

dev-python/leather: Enable unit tests

tests/test_axis.py::TestChart::test_tick_formatter PASSED                       
                                                                                
                       [  1%]
tests/test_axis.py::TestChart::test_ticks PASSED                                
                                                                                
                       [  2%]
tests/test_chart.py::TestChart::test_add_axes PASSED                            
                                                                                
                       [  4%]
tests/test_chart.py::TestChart::test_add_scales PASSED                          
                                                                                
                       [  5%]
tests/test_chart.py::TestChart::test_multiple_series PASSED                     
                                                                                
                       [  7%]
tests/test_chart.py::TestChart::test_scale_domain_warning PASSED                
                                                                                
                       [  8%]
tests/test_chart.py::TestChart::test_set_axes PASSED                            
                                                                                
                       [ 10%]
tests/test_chart.py::TestChart::test_set_scales PASSED                          
                                                                                
                       [ 11%]
tests/test_chart.py::TestChart::test_single_series PASSED                       
                                                                                
                       [ 12%]
tests/test_chart.py::TestChart::test_to_svg_file_handle PASSED                  
                                                                                
                       [ 14%]
tests/test_chart.py::TestChart::test_to_svg_file_name PASSED                    
                                                                                
                       [ 15%]
tests/test_chart.py::TestChart::test_unicode PASSED                             
                                                                                
                       [ 17%]
tests/test_grid.py::TestGrid::test_add_many PASSED                              
                                                                                
                       [ 18%]
tests/test_grid.py::TestGrid::test_add_one PASSED                               
                                                                                
                       [ 20%]
tests/test_grid.py::TestGrid::test_to_svg_file_handle PASSED                    
                                                                                
                       [ 21%]
tests/test_grid.py::TestGrid::test_to_svg_file_name PASSED                      
                                                                                
                       [ 22%]
tests/test_lattice.py::TestLattice::test_add_many PASSED                        
                                                                                
                       [ 24%]
tests/test_lattice.py::TestLattice::test_add_one PASSED                         
                                                                                
                       [ 25%]
tests/test_lattice.py::TestLattice::test_bars PASSED                            
                                                                                
                       [ 27%]
tests/test_lattice.py::TestLattice::test_bars_different PASSED                  
                                                                                
                       [ 28%]
tests/test_scales.py::TestLinear::test_contains PASSED                          
                                                                                
                       [ 30%]
tests/test_scales.py::TestLinear::test_decimal PASSED                           
                                                                                
                       [ 31%]
tests/test_scales.py::TestLinear::test_no_spread PASSED                         
                                                                                
                       [ 32%]
tests/test_scales.py::TestLinear::test_project PASSED                           
                                                                                
                       [ 34%]
tests/test_scales.py::TestLinear::test_ticks PASSED                             
                                                                                
                       [ 35%]
tests/test_scales.py::TestOrdinal::test_contains PASSED                         
                                                                                
                       [ 37%]
tests/test_scales.py::TestOrdinal::test_project PASSED                          
                                                                                
                       [ 38%]
tests/test_scales.py::TestOrdinal::test_project_interval PASSED                 
                                                                                
                       [ 40%]
tests/test_scales.py::TestOrdinal::test_ticks PASSED                            
                                                                                
                       [ 41%]
tests/test_scales.py::TestTemporal::test_contains PASSED                        
                                                                                
                       [ 42%]
tests/test_scales.py::TestTemporal::test_project PASSED                         
                                                                                
                       [ 44%]
tests/test_scales.py::TestTemporal::test_project_interval PASSED                
                                                                                
                       [ 45%]
tests/test_scales.py::TestTemporal::test_ticks PASSED                           
                                                                                
                       [ 47%]
tests/test_series.py::TestSeries::test_custom PASSED                            
                                                                                
                       [ 48%]
tests/test_series.py::TestSeries::test_dicts PASSED                             
                                                                                
                       [ 50%]
tests/test_series.py::TestSeries::test_lists PASSED                             
                                                                                
                       [ 51%]
tests/test_series.py::TestSeries::test_pairs PASSED                             
                                                                                
                       [ 52%]
tests/test_series.py::TestCategorySeries::test_triples PASSED                   
                                                                                
                       [ 54%]
tests/test_shapes.py::TestBars::test_nulls PASSED                               
                                                                                
                       [ 55%]
tests/test_shapes.py::TestBars::test_to_svg PASSED                              
                                                                                
                       [ 57%]
tests/test_shapes.py::TestBars::test_validate PASSED                            
                                                                                
                       [ 58%]
tests/test_shapes.py::TestBars::test_zeros PASSED                               
                                                                                
                       [ 60%]
tests/test_shapes.py::TestColumns::test_nulls PASSED                            
                                                                                
                       [ 61%]
tests/test_shapes.py::TestColumns::test_to_svg PASSED                           
                                                                                
                       [ 62%]
tests/test_shapes.py::TestColumns::test_validate PASSED                         
                                                                                
                       [ 64%]
tests/test_shapes.py::TestDots::test_linear PASSED                              
                                                                                
                       [ 65%]
tests/test_shapes.py::TestDots::test_nulls PASSED                               
                                                                                
                       [ 67%]
tests/test_shapes.py::TestDots::test_ordinal PASSED                             
                                                                                
                       [ 68%]
tests/test_shapes.py::TestDots::test_validate PASSED                            
                                                                                
                       [ 70%]
tests/test_shapes.py::TestLine::test_linear PASSED                              
                                                                                
                       [ 71%]
tests/test_shapes.py::TestLine::test_nulls PASSED                               
                                                                                
                       [ 72%]
tests/test_shapes.py::TestLine::test_ordinal PASSED                             
                                                                                
                       [ 74%]
tests/test_shapes.py::TestLine::test_validate PASSED                            
                                                                                
                       [ 75%]
tests/test_ticks.py::TestScoreTicker::test_years PASSED                         
                                                                                
                       [ 77%]
tests/test_ticks.py::TestScoreTimeTicker::test_days PASSED                      
                                                                                
                       [ 78%]
tests/test_ticks.py::TestScoreTimeTicker::test_days_datetime PASSED             
                                                                                
                       [ 80%]
tests/test_ticks.py::TestScoreTimeTicker::test_days_for_months PASSED           
                                                                                
                       [ 81%]
tests/test_ticks.py::TestScoreTimeTicker::test_hours PASSED                     
                                                                                
                       [ 82%]
tests/test_ticks.py::TestScoreTimeTicker::test_hours_for_days PASSED            
                                                                                
                       [ 84%]
tests/test_ticks.py::TestScoreTimeTicker::test_microseconds PASSED              
                                                                                
                       [ 85%]
tests/test_ticks.py::TestScoreTimeTicker::test_microseconds_for_seconds PASSED  
                                                                                
                       [ 87%]
tests/test_ticks.py::TestScoreTimeTicker::test_minutes PASSED                   
                                                                                
                       [ 88%]
tests/test_ticks.py::TestScoreTimeTicker::test_minutes_for_hours PASSED         
                                                                                
                       [ 90%]
tests/test_ticks.py::TestScoreTimeTicker::test_months PASSED                    
                                                                                
                       [ 91%]
tests/test_ticks.py::TestScoreTimeTicker::test_months_datetime PASSED           
                                                                                
                       [ 92%]
tests/test_ticks.py::TestScoreTimeTicker::test_months_for_years PASSED          
                                                                                
                       [ 94%]
tests/test_ticks.py::TestScoreTimeTicker::test_seconds PASSED                   
                                                                                
                       [ 95%]
tests/test_ticks.py::TestScoreTimeTicker::test_seconds_for_minutes PASSED       
                                                                                
                       [ 97%]
tests/test_ticks.py::TestScoreTimeTicker::test_years PASSED                     
                                                                                
                       [ 98%]
tests/test_ticks.py::TestScoreTimeTicker::test_years_datetime PASSED            
                                                                                
                       [100%]

Reported-py: Michał Górny <mgorny <AT> gentoo.org>
Closes: https://bugs.gentoo.org/797313
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 dev-python/leather/Manifest                | 1 +
 dev-python/leather/leather-0.3.3-r1.ebuild | 8 ++++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dev-python/leather/Manifest b/dev-python/leather/Manifest
index 0d3da570b05..5df59075e1e 100644
--- a/dev-python/leather/Manifest
+++ b/dev-python/leather/Manifest
@@ -1 +1,2 @@
+DIST leather-0.3.3-src.tar.gz 40522 BLAKE2B 
3c7e6a48615751b310b7f066f2a78a2494e00256cae2ebfb4633c9389cca2477c2265fcf8c68f37733568ef729db1a5daf02ddc640bf2a60f2b39127c9a38d91
 SHA512 
30ea50ac6f97c55ee695b0e175a27e1e64fd17da7b0686ca8595fe0e5067932e19e59368fe6441f8f291ec52be3e597a80f8e04a3fcc0eeae33b3a5b3030e1d6
 DIST leather-0.3.3.tar.gz 18391 BLAKE2B 
0a81343251fcdea85873fea023e1d709a385b268c2900642764c1a0ae6abfa84d9dece0ef67ae152b716c93c1bdaf9671f8c5df8cf5605694af48e8f3552437a
 SHA512 
3387353d4da129fa3601799efe8742aea08f94579caab7a5a05175ff7ad50a815fc7ca4aee5d1c390027bda3a9bf1ecd1ed5167575386a7a58f56625f5165350

diff --git a/dev-python/leather/leather-0.3.3-r1.ebuild 
b/dev-python/leather/leather-0.3.3-r1.ebuild
index 7339c3ec38f..8677a80398d 100644
--- a/dev-python/leather/leather-0.3.3-r1.ebuild
+++ b/dev-python/leather/leather-0.3.3-r1.ebuild
@@ -9,11 +9,13 @@ inherit distutils-r1
 
 DESCRIPTION="Python charting for 80% of humans."
 HOMEPAGE="https://github.com/wireservice/leather 
https://pypi.org/project/leather/";
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
+       test? ( 
https://github.com/wireservice/leather/archive/refs/tags/${PV}.tar.gz -> 
${P}-src.tar.gz ) "
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="+xml"
+IUSE="test +xml"
+RESTRICT="!test? ( test )"
 
 # Other packages have BDEPEND="test? ( dev-python/leather[xml] )"
 TEST_AGAINST_RDEPEND="xml? ( dev-python/lxml[${PYTHON_USEDEP}] )"
@@ -21,3 +23,5 @@ RDEPEND="
        ${TEST_AGAINST_RDEPEND}
        >=dev-python/six-1.6.1[${PYTHON_USEDEP}]
 "
+
+distutils_enable_tests pytest

Reply via email to