33from typing import List
44
55# 3rd party
6+ import dom_toml
67import pytest
7- import toml
88from coincidence import AdvancedDataRegressionFixture
99from domdf_python_tools .paths import PathPlus
1010from shippinglabel .requirements import read_requirements
@@ -66,7 +66,7 @@ def test_seed_intersphinx_mapping(
6666 )
6767def test_seed_intersphinx_mapping_pyproject (tmp_pathplus : PathPlus , contents : str , expects : List [str ], capsys ):
6868 data = {"project" : {"dependencies" : contents .splitlines ()}}
69- (tmp_pathplus / "pyproject.toml" ).write_clean (toml .dumps (data ))
69+ (tmp_pathplus / "pyproject.toml" ).write_clean (dom_toml .dumps (data ))
7070
7171 assert seed_intersphinx_mapping (* parse_pyproject_toml (tmp_pathplus )) == expects
7272 err = capsys .readouterr ().err
@@ -81,7 +81,7 @@ def test_seed_intersphinx_mapping_pyproject(tmp_pathplus: PathPlus, contents: st
8181 )
8282def test_seed_intersphinx_mapping_flit (tmp_pathplus : PathPlus , contents : str , expects : List [str ], capsys ):
8383 data = {"tool" : {"flit" : {"metadata" : {"requires" : contents .splitlines ()}}}}
84- (tmp_pathplus / "pyproject.toml" ).write_clean (toml .dumps (data ))
84+ (tmp_pathplus / "pyproject.toml" ).write_clean (dom_toml .dumps (data ))
8585
8686 assert seed_intersphinx_mapping (* parse_flit_requirements (tmp_pathplus )) == expects
8787 err = capsys .readouterr ().err
@@ -109,7 +109,7 @@ def test_sphinx_seed_intersphinx_mapping_mocked(
109109 "tool" : {"flit" : {"metadata" : {"requires" : contents .splitlines ()}}}
110110 }
111111
112- (tmp_pathplus / "pyproject.toml" ).write_clean (toml .dumps (data ))
112+ (tmp_pathplus / "pyproject.toml" ).write_clean (dom_toml .dumps (data ))
113113 (tmp_pathplus / "requirements.txt" ).write_text (contents )
114114
115115 app = SimpleNamespace ()
0 commit comments