Skip to content

Commit

Permalink
Mock state_machine in AutoprogramDirectiveTestCase
Browse files Browse the repository at this point in the history
Fixes failing test with docutils 0.19.

Closes: #54
  • Loading branch information
Jochen Sprickerhof authored and langston-barrett committed Feb 11, 2023
1 parent 4578225 commit 70cf629
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinxcontrib/autoprogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import sys
from typing import Any, Dict, Iterable, List, Optional, Tuple
import unittest
from unittest import mock

from docutils import nodes
from docutils.parsers.rst import Directive
Expand Down Expand Up @@ -534,7 +535,7 @@ def setUp(self) -> None:
0,
".. autoprogram:: cli:parser\n :prog: cli.py\n",
None,
None,
mock.Mock(),
)

def tearDown(self) -> None:
Expand Down

0 comments on commit 70cf629

Please sign in to comment.