From 27c3359f956477743c9ac76ed121426cc39cb4b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olav=20M=C3=B8yner?= Date: Mon, 29 Jan 2024 10:45:32 +0100 Subject: [PATCH] Fix to tests --- docs/src/index.md | 10 +++++++--- src/GeoEnergyIO.jl | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/src/index.md b/docs/src/index.md index e0e8c69..b725c06 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -6,9 +6,13 @@ CurrentModule = GeoEnergyIO Documentation for [GeoEnergyIO](https://github.com/sintefmath/GeoEnergyIO.jl). -```@index +```@docs +parse_data_file +parse_grdecl_file +mesh_from_grid_section +get_data_file_cell_region ``` -```@autodocs -Modules = [GeoEnergyIO] +```@index ``` + diff --git a/src/GeoEnergyIO.jl b/src/GeoEnergyIO.jl index 6a4e1b1..032b01d 100644 --- a/src/GeoEnergyIO.jl +++ b/src/GeoEnergyIO.jl @@ -11,7 +11,8 @@ module GeoEnergyIO import .CornerPointGrid: mesh_from_grid_section function test_input_file_path(folder, name = missing; base = "mrst") - test_dir = joinpath(pathof(GeoEnergyIO), "..", "..", "test", "data") + pth, = splitdir(pathof(GeoEnergyIO)) + test_dir = joinpath(pth, "..", "test", "data") deck_dir = joinpath(test_dir, base) if ismissing(name) out = joinpath(deck_dir, folder)