File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -439,18 +439,23 @@ def test_database_utf8(sys_db, special_db_names):
439439 assert sys_db .delete_database (name )
440440
441441
442- def test_license (sys_db , enterprise ):
442+ def test_license (sys_db , enterprise , db_version ):
443443 license = sys_db .license ()
444444 assert isinstance (license , dict )
445445
446- if enterprise :
447- assert set (license .keys ()) == {
446+ if db_version >= version .parse ("3.12.5" ):
447+ expected_keys = {"diskUsage" , "upgrading" }
448+ else :
449+ expected_keys = {
448450 "upgrading" ,
449451 "features" ,
450452 "license" ,
451453 "version" ,
452454 "status" ,
453455 }
456+
457+ if enterprise :
458+ assert set (license .keys ()) == expected_keys
454459 else :
455460 assert license == {"license" : "none" }
456461 with pytest .raises (ServerLicenseSetError ):
You can’t perform that action at this time.
0 commit comments