From 4d65b4c23afb3c253132f76880cd8646a5621fd4 Mon Sep 17 00:00:00 2001 From: Srikanth Ravipati <rsri131@gmail.com> Date: Wed, 24 Feb 2021 12:00:25 +0000 Subject: [PATCH] Set and unset ISIS facility --- .../test/ISISReflectometry/Runs/RunsPresenterTest.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/qt/scientific_interfaces/test/ISISReflectometry/Runs/RunsPresenterTest.h b/qt/scientific_interfaces/test/ISISReflectometry/Runs/RunsPresenterTest.h index 425c16e6951..4d2bdfda946 100644 --- a/qt/scientific_interfaces/test/ISISReflectometry/Runs/RunsPresenterTest.h +++ b/qt/scientific_interfaces/test/ISISReflectometry/Runs/RunsPresenterTest.h @@ -40,6 +40,19 @@ using testing::ReturnRef; //===================================================================================== class RunsPresenterTest : public CxxTest::TestSuite { public: + + void setUp() override { + + Mantid::Kernel::ConfigService::Instance().setString("default.facility", "ISIS"); + + } + + void tearDown() override { + + Mantid::Kernel::ConfigService::Instance().setString("default.facility", "NONE"); + + } + // This pair of boilerplate methods prevent the suite being created statically // This means the constructor isn't called when running other tests static RunsPresenterTest *createSuite() { return new RunsPresenterTest(); } -- GitLab