Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail for the 1.4.1 tarball #97

Closed
ralphbean opened this issue Feb 26, 2014 · 3 comments

Comments

2 participants
@ralphbean
Copy link
Contributor

commented Feb 26, 2014

I'm trying to package up pygal-1.4.1 for fedora, but the test suite is failing. Just brining it to your attention:

============================= test session starts ==============================
platform linux2 -- Python 2.7.5 -- py-1.4.20 -- pytest-2.5.2
collected 754 items

pygal/test/test_bar.py .
pygal/test/test_box.py ..
pygal/test/test_colors.py ...........................................
pygal/test/test_config.py ...........................................................................................................................................
pygal/test/test_donut.py ..
pygal/test/test_graph.py .............................................................................................................................................................................................................................................................................................................F.F..................................................................................................................................................................................................................................................
pygal/test/test_line.py .....
pygal/test/test_sparktext.py .....
pygal/test/test_stacked.py ...
pygal/test/test_util.py ........

=================================== FAILURES ===================================
_________________________ test_values_by_dict[Chart7] __________________________

Chart = <class 'pygal.FrenchMap_Regions'>

    def test_values_by_dict(Chart):
        chart1 = Chart(no_prefix=True)
        chart2 = Chart(no_prefix=True)

        if not issubclass(Chart, pygal.Worldmap):
            chart1.add('A', {'red': 10, 'green': 12, 'blue': 14})
            chart1.add('B', {'green': 11, 'red': 7})
            chart1.add('C', {'blue': 7})
            chart1.add('D', {})
            chart1.add('E', {'blue': 2, 'red': 13})
            chart1.x_labels = ('red', 'green', 'blue')

            chart2.add('A', [10, 12, 14])
            chart2.add('B', [7, 11])
            chart2.add('C', [None, None, 7])
            chart2.add('D', [])
            chart2.add('E', [13, None, 2])
            chart2.x_labels = ('red', 'green', 'blue')
        else:
            chart1.add('A', {'fr': 10, 'us': 12, 'jp': 14})
            chart1.add('B', {'cn': 99})
            chart1.add('C', {})

            chart2.add('A', [('fr', 10), ('us', 12), ('jp', 14)])
            chart2.add('B', [('cn', 99)])
            chart2.add('C', [None, (None, None)])

>       assert chart1.render() == chart2.render()
E       assert '<?xml versio..."/></g></svg>' == '<?xml version..."/></g></svg>'
E         Detailed information truncated, use "-vv" to show

pygal/test/test_graph.py:185: AssertionError
_________________________ test_values_by_dict[Chart9] __________________________

Chart = <class 'pygal.FrenchMap_Departments'>

    def test_values_by_dict(Chart):
        chart1 = Chart(no_prefix=True)
        chart2 = Chart(no_prefix=True)

        if not issubclass(Chart, pygal.Worldmap):
            chart1.add('A', {'red': 10, 'green': 12, 'blue': 14})
            chart1.add('B', {'green': 11, 'red': 7})
            chart1.add('C', {'blue': 7})
            chart1.add('D', {})
            chart1.add('E', {'blue': 2, 'red': 13})
            chart1.x_labels = ('red', 'green', 'blue')

            chart2.add('A', [10, 12, 14])
            chart2.add('B', [7, 11])
            chart2.add('C', [None, None, 7])
            chart2.add('D', [])
            chart2.add('E', [13, None, 2])
            chart2.x_labels = ('red', 'green', 'blue')
        else:
            chart1.add('A', {'fr': 10, 'us': 12, 'jp': 14})
            chart1.add('B', {'cn': 99})
            chart1.add('C', {})

            chart2.add('A', [('fr', 10), ('us', 12), ('jp', 14)])
            chart2.add('B', [('cn', 99)])
            chart2.add('C', [None, (None, None)])

>       assert chart1.render() == chart2.render()
E       assert '<?xml versio..."/></g></svg>' == '<?xml version..."/></g></svg>'
E         Detailed information truncated, use "-vv" to show

pygal/test/test_graph.py:185: AssertionError
===================== 2 failed, 752 passed in 6.76 seconds =====================
@ralphbean

This comment has been minimized.

Copy link
Contributor Author

commented Feb 26, 2014

These packages are installed:

cssselect==0.9.1
lxml==3.3.1
py==1.4.20
pygal==1.4.1
pyquery==1.2.8
pytest==2.5.2
wsgiref==0.1.2
@paradoxxxzero

This comment has been minimized.

Copy link
Member

commented Feb 27, 2014

Whoops sorry about that, I made a 1.4.2 with hopefully working tests.

@ralphbean

This comment has been minimized.

Copy link
Contributor Author

commented Feb 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.