Fix language in library tests (#889)

* Fix language in library tests

* "Other Videos" library type uses `language="xn"`

* Log server version in bootstrap server
This commit is contained in:
JonnyWong16 2022-02-19 17:16:37 -08:00 committed by GitHub
parent e3aa111784
commit 158dd37e41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -133,7 +133,7 @@ def test_library_add_edit_delete(plex, movies, photos):
type="movie",
agent="com.plexapp.agents.none",
scanner="Plex Video Files Scanner",
language="en",
language="xn",
location=[movie_location, photo_location]
)
section = plex.library.section(section_name)
@ -146,7 +146,7 @@ def test_library_add_edit_delete(plex, movies, photos):
type="movie",
agent="com.plexapp.agents.none",
scanner="Plex Video Files Scanner",
language="en",
language="xn",
location=[movie_location, photo_location[:-1]]
)
# Create library with no path
@ -156,7 +156,7 @@ def test_library_add_edit_delete(plex, movies, photos):
type="movie",
agent="com.plexapp.agents.none",
scanner="Plex Video Files Scanner",
language="en",
language="xn",
)
with pytest.raises(NotFound):
plex.library.section(error_section_name)

View file

@ -482,7 +482,8 @@ if __name__ == "__main__":
"Server didnt appear in your account after %ss" % opts.bootstrap_timeout
)
print("Plex container started after %ss, setting up content" % int(runtime))
print("Plex container started after %ss" % int(runtime))
print("Plex server version %s" % server.version)
if opts.accept_eula:
server.settings.get("acceptedEULA").set(True)