Coverage for rfpy/vendor/webapp.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-04-24 10:52 +0000

1import logging 

2 

3from rfpy.suxint import Sux 

4from rfpy.web.base import WSGIApp 

5 

6log = logging.getLogger(__name__) 

7 

8 

9vendor_sux = Sux( 

10 "rfpy.vendor.api", 

11 "rfpy.adaptors", 

12 arg_regex=r"/[\d.]+", 

13 api_name="SupplierSelect Vendor API", 

14) 

15 

16 

17class VendorApp(WSGIApp): 

18 routes = {} 

19 

20 def validate_user(self, request): 

21 """ 

22 User from any time of organisation can access this app - Buyer, Consultant or Respondent 

23 """ 

24 pass 

25 

26 def build_sux(self): 

27 self.sux_instance = vendor_sux