From e267b77db200f98cfdb32e6186e46a731a8f4868 Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Fri, 2 Jun 2023 11:28:15 +0200 Subject: [PATCH] Fixing linkcode tests for release (#2098) --- tests/test_docs.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_docs.py b/tests/test_docs.py index 502471081b..6bfa2ae038 100644 --- a/tests/test_docs.py +++ b/tests/test_docs.py @@ -10,7 +10,6 @@ ) -@skip_if_not_on_ci @pytest.mark.parametrize("edit", [True, False]) @pytest.mark.parametrize( "test_input,expected", @@ -52,4 +51,9 @@ def test_linkcode_resolve(test_input, expected, edit): info = {"module": "ansys.mapdl.core", "fullname": test_input} url = linkcode_resolve("py", info, edit) - assert expected in url + assert "http://github.com/pyansys/pymapdl" in url + assert "src/ansys/mapdl/core" in url + assert expected.split("/")[-1] in url + + if "main" in url: + assert expected in url