diff options
author | Julien Dessaux | 2021-09-10 17:31:59 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-09-10 17:32:22 +0200 |
commit | 7ae1c766447711ee568566ba52a23f99cc92a49f (patch) | |
tree | c8288a3b6568192e15c4fe0f4f885e37505eabed /internal/webui/root_test.go | |
parent | Finished not so simple refactoring (diff) | |
download | trains-7ae1c766447711ee568566ba52a23f99cc92a49f.tar.gz trains-7ae1c766447711ee568566ba52a23f99cc92a49f.tar.bz2 trains-7ae1c766447711ee568566ba52a23f99cc92a49f.zip |
Refactoring of navitia mocking code for the webui
Diffstat (limited to '')
-rw-r--r-- | internal/webui/root_test.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/internal/webui/root_test.go b/internal/webui/root_test.go index b86bb1c..7e4ec71 100644 --- a/internal/webui/root_test.go +++ b/internal/webui/root_test.go @@ -10,20 +10,6 @@ import ( "github.com/stretchr/testify/require" ) -type NavitiaMockClient struct { - departures []model.Departure - trainStops []model.Stop - err error -} - -func (c *NavitiaMockClient) GetDepartures(trainStop string) (departures []model.Departure, err error) { - return c.departures, c.err -} - -func (c *NavitiaMockClient) GetStops() (trainStops []model.Stop, err error) { - return c.trainStops, c.err -} - func TestRootHandler(t *testing.T) { // test environment setup dbEnv, err := database.InitDB("sqlite3", "file::memory:?_foreign_keys=on") |