Skip to content

Commit fb504a1

Browse files
authored
Update test to match changes in dependencies (#27)
1 parent 87a3992 commit fb504a1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def read_file(fname):
2424
license='MIT',
2525
python_requires='>=3.7',
2626
install_requires=[
27-
'mkdocs>=0.17',
28-
'pygments'
27+
'mkdocs>=1.2',
28+
'pygments>=2.9.0'
2929
],
3030
setup_requires=['better-setuptools-git-version'],
3131
classifiers=[

tests/codeinclude/test_plugin.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
import textwrap
33
import unittest
44

5-
from mkdocs.config import Config, DEFAULT_SCHEMA
5+
import mkdocs.config
6+
import mkdocs.config.defaults
67
from mkdocs.structure.files import File
78
from mkdocs.structure.pages import Page
89

@@ -99,7 +100,7 @@
99100
100101
"""
101102

102-
c = Config(schema=DEFAULT_SCHEMA)
103+
c = mkdocs.config.Config(schema=mkdocs.config.defaults.get_schema())
103104
c["site_url"] = "http://example.org/"
104105

105106
PAGE_EXAMPLE = Page(
@@ -367,7 +368,7 @@ def test_other_language(self):
367368
368369
some text before
369370
370-
```js tab="other_lang"
371+
```javascript tab="other_lang"
371372
// script in a custom language
372373
373374
```

0 commit comments

Comments
 (0)