cleanup and slight refactor
This commit is contained in:
29
testing.py
Normal file
29
testing.py
Normal file
@@ -0,0 +1,29 @@
|
||||
from vrchatapi.models.group_instance import GroupInstance
|
||||
from vrchatapi.models.world import World
|
||||
from random import randint
|
||||
from datetime import datetime
|
||||
|
||||
def fake_group_instances():
|
||||
group_instances = []
|
||||
# For testing purposes
|
||||
|
||||
# Worlds API object that is valid enough to not cause errors in testing
|
||||
fakeWorld = World(
|
||||
"usr_123TEST-789-abcd-efghi-aaa69420",
|
||||
"McLovin",
|
||||
90,
|
||||
50,
|
||||
datetime.now(),
|
||||
"A test world, it does not exist. No VRC API's were harmed",
|
||||
0, False, 0, "world_AAAA-TEST-49494-69420",
|
||||
"http://null.example/hello.jpg", [], "4/20/2020",
|
||||
"Fake world", None, 0, "vrchat", 0, None, 0, 0, "9/11/2021", "public", ["nothing", "testing"],
|
||||
"http://testing.localhost/thisisnotreal.png", [], datetime.now(), 5, 90, [])
|
||||
|
||||
# Fake instance
|
||||
fakeInstance1 = GroupInstance("TESTTESTgrp_69420_aaaaaaaaa",
|
||||
"test", fakeWorld, randint(1, 50))
|
||||
|
||||
group_instances.append(fakeInstance1)
|
||||
|
||||
return group_instances
|
Reference in New Issue
Block a user