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

askomics / flaskomics / 8143972779

04 Mar 2024 04:54PM UTC coverage: 83.219%. Remained the same
8143972779

Pull #449

github

web-flow
Merge 6d2bc1d30 into 91939bc97
Pull Request #449: Bump xml2js and parse-bmfont-xml

6283 of 7550 relevant lines covered (83.22%)

0.83 hits per line

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

27.27
/askomics/middleware.py
1
class PrefixMiddleware(object):
1✔
2

3
    def __init__(self, app, prefix=''):
1✔
4
        self.app = app
×
5
        self.prefix = prefix
×
6

7
    def __call__(self, environ, start_response):
1✔
8
        if self.prefix is not None:
×
9
            environ['SCRIPT_NAME'] = self.prefix
×
10
            path_info = environ['PATH_INFO']
×
11
            if path_info.startswith(self.prefix):
×
12
                environ['PATH_INFO'] = path_info[len(self.prefix):]
×
13
        return self.app(environ, start_response)
×
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