fix: Group fluent subscript (#7386)

This commit is contained in:
Micha Reiser 2023-09-14 13:04:14 +02:00 committed by GitHub
parent 1f8e2b8f14
commit 675c86c175
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 69 additions and 17 deletions

View file

@ -98,3 +98,15 @@ def f():
package_version is not None
and package_version.split(".")[:2] == package_info.version.split(".")[:2]
)
# Group to ensure other arguments don't expand.
self.assertEqual(
houses.all()[0].occupants.all()[0].houses.all()[1].rooms.all()[0],
self.room2_1,
)
self.assertEqual(
suite._tests[0].id().split(".")[0],
os.path.basename(os.getcwd()),
)