File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 16
16
17
17
def check_structure (outdir ):
18
18
contentsdir = outdir / 'Contents'
19
- assert contentsdir .isdir ()
20
- assert (contentsdir / 'Info.plist' ).isfile ()
19
+ assert contentsdir .is_dir ()
20
+ assert (contentsdir / 'Info.plist' ).is_file ()
21
21
22
- with open (contentsdir / 'Info.plist' , 'rb' ) as f :
23
- plist = plistlib .load (f )
22
+ plist = plistlib .load (contentsdir .joinpath ('Info.plist' ).read_bytes ())
24
23
assert plist
25
24
assert len (plist )
26
25
assert plist .get ('CFBundleIdentifier' , None ) == 'org.sphinx-doc.Sphinx.help'
27
26
28
- assert (contentsdir / 'Resources' ).isdir ()
29
- assert (contentsdir / 'Resources' / 'en.lproj' ).isdir ()
27
+ assert (contentsdir / 'Resources' ).is_dir ()
28
+ assert (contentsdir / 'Resources' / 'en.lproj' ).is_dir ()
30
29
31
30
32
31
def check_localization (outdir ):
33
32
lprojdir = outdir / 'Contents' / 'Resources' / 'en.lproj'
34
- assert (lprojdir / 'localized.txt' ).isfile ()
33
+ assert (lprojdir / 'localized.txt' ).is_file ()
35
34
36
35
37
36
@pytest .mark .sphinx (
You can’t perform that action at this time.
0 commit comments