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

geopython / pywps / 6693153155

30 Oct 2023 01:00PM UTC coverage: 81.021%. First build
6693153155

Pull #687

github

web-flow
Merge 2966ddad2 into 9e21b93d3
Pull Request #687: fix tests

5 of 5 new or added lines in 3 files covered. (100.0%)

5110 of 6307 relevant lines covered (81.02%)

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