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 csv | |
| import io | |
| import tempfile | |
| import zipfile | |
| import falcon | |
| GB = 1024 ^ 3 | |
| MEM_MAX_SIZE = 1 * GB |
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
| from flask import Flask, url_for | |
| import pytest | |
| @pytest.fixture | |
| def app(): | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def view(): |
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 contextlib | |
| class SystemdRun: | |
| def __init__(self, unit_name: str, restart_wait: str = '5s'): | |
| self.unit_name = unit_name | |
| self.restart_wait = restart_wait | |
| def stop(self): | |
| sub_run('systemctl', '--user', 'stop', self.unit_name, capture=True, check=False) |
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
| [Unit] | |
| Description=Github online service | |
| After=network-online.target | |
| # Unlimited retries | |
| StartLimitBurst=0 | |
| [Service] | |
| Type=exec |
OlderNewer