This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gevent | |
import websocket | |
from websocket import create_connection | |
from locust import HttpLocust, TaskSet, task | |
from locust.events import request_success, request_failure | |
class EchoTaskSet(TaskSet): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def clear_data(db): | |
meta = db.metadata | |
for table in reversed(meta.sorted_tables): | |
print(table) | |
session.execute(table.delete()) | |
session.commit() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "blocks/base.html" %} | |
{% load i18n %} | |
{% load sekizai_tags %} | |
{% load staticfiles %} | |
{% load account %} | |
{% load socialaccount %} | |
{% load bootstrap3 %} | |
{% block content %} | |
{% addtoblock "css" %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"open": true, | |
"date": "28-07-2021 23:58", | |
"message": "are you happy?", | |
"is_question": true | |
} |
OlderNewer