Ejemplo n.º 1
0
 def step4(self):
     delta = time.time()
     for guild in self.bot.guilds:
         data = guildreader.read_file(guild.id, "test")
         assert data["A"] == 80
         assert data["B"] == [1, 2, 3, 4, 5, 6, 8, 9, 10]
     print(f'Full Reread Time: {time.time()-delta} seconds...')
Ejemplo n.º 2
0
 def step7(self):
     delta = time.time()
     data = guildreader.read_file(self.bot.guilds[0].id, "test")
     data["A"] = 80
     data["B"] = [1, 2, 3, 4, 5, 6, 8, 9, 10]
     guildreader.write_file(self.bot.guilds[0].id, "test", data)
     print(f'Single Write Time: {time.time() - delta} seconds...')
Ejemplo n.º 3
0
 def step3(self):
     delta = time.time()
     for guild in self.bot.guilds:
         data = guildreader.read_file(guild.id, "test")
         data["A"] = 80
         data["B"] = [1, 2, 3, 4, 5, 6, 8, 9, 10]
         guildreader.write_file(guild.id, "test", data)
     print(f'Full Write Time: {time.time()-delta} seconds...')
Ejemplo n.º 4
0
 def step4(self):
     for guild in self.bot.guilds:
         data = guildreader.read_file(guild.id, "test")
         assert data == "rewrite"
Ejemplo n.º 5
0
 def step8(self):
     delta = time.time()
     data = guildreader.read_file(self.bot.guilds[0].id, "test")
     assert data["A"] == 80
     assert data["B"] == [1, 2, 3, 4, 5, 6, 8, 9, 10]
     print(f'Single Reread Time: {time.time() - delta} seconds...')