• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geopython / pywps / 4027542172

pending completion
4027542172

Pull #670

github

GitHub
<a href="https://github.com/geopython/pywps/commit/<a class=hub.com/geopython/pywps/commit/f20266d5f4acfd869670cc4a4788c6063722692a">f20266d5f<a href="https://github.com/geopython/pywps/commit/f20266d5f4acfd869670cc4a4788c6063722692a">">Merge </a><a class="double-link" href="https://github.com/geopython/pywps/commit/<a class="double-link" href="https://github.com/geopython/pywps/commit/c1a1c5268de249f0881e130359f1c84087bb8101">c1a1c5268</a>">c1a1c5268</a><a href="https://github.com/geopython/pywps/commit/f20266d5f4acfd869670cc4a4788c6063722692a"> into e41b063ba">e41b063ba</a>
Pull Request #670: fixed tox.ini parameter passenv

5172 of 6354 relevant lines covered (81.4%)

0.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/pywps/inout/array_encode.py
1
##################################################################
2
# Copyright 2018 Open Source Geospatial Foundation and others    #
3
# licensed under MIT, Please consult LICENSE.txt for details     #
4
##################################################################
5

6
from json import JSONEncoder
1✔
7

8

9
class ArrayEncoder(JSONEncoder):
1✔
10
    def default(self, obj):
1✔
11
        if hasattr(obj, 'tolist'):
×
12
            # this will work for array.array and numpy.ndarray
13
            return obj.tolist()
×
14
        return JSONEncoder.default(self, obj)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc