From 2648139027320a7e567fa4ba4df1b51ccbf0dc49 Mon Sep 17 00:00:00 2001 From: MJB <mjb@it-innovation.soton.ac.uk> Date: Wed, 13 Jun 2018 15:44:20 +0100 Subject: [PATCH] started to work on mock router API --- src/service/clmcservice/test_sr_mock_view.py | 6 +++--- src/service/clmcservice/views.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/service/clmcservice/test_sr_mock_view.py b/src/service/clmcservice/test_sr_mock_view.py index 053066c..ddf51a9 100644 --- a/src/service/clmcservice/test_sr_mock_view.py +++ b/src/service/clmcservice/test_sr_mock_view.py @@ -7,7 +7,7 @@ import os import signal -class TestSRMockAPI(object): +class TestSFEMCMockAPI(object): @pytest.fixture(autouse=True) def app_config(self): @@ -32,10 +32,10 @@ class TestSRMockAPI(object): print("Test get") # nested import so that importing the class view is part of the test itself - from clmcservice.views import SRMockConfig + from clmcservice.views import SFEMCMockConfig request = testing.DummyRequest() - response = SRMockConfig(request).get() + response = SFEMCMockConfig(request).get() print("response={0}".format(response)) diff --git a/src/service/clmcservice/views.py b/src/service/clmcservice/views.py index ddcdd2e..84fae5b 100644 --- a/src/service/clmcservice/views.py +++ b/src/service/clmcservice/views.py @@ -307,8 +307,8 @@ class RoundTripTimeQuery(object): return forward_latency + forward_data_delay + service_delay + reverse_latency + reverse_data_delay -@view_defaults(route_name='sr_config', renderer='json') -class SRMockConfig(object): +@view_defaults(route_name='sfemc_config', renderer='json') +class SFEMCMockConfig(object): """ A class-based view for accessing and mutating the configuration of the aggregator. """ -- GitLab