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
#!/usr/bin/env python | |
# Use /usr/bin/env python to support virtual environments | |
# This script is for Python > 3.6 | |
# -*- coding: utf-8 -*- | |
""" | |
Test loading mock initial alliances data into a test table with asyncpg and Postgres | |
""" | |
import datetime | |
import json |
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
PostgreSQL: | |
user A (non-super-user admin account with createdb and createuser) | |
destiny database: | |
# main destiny database | |
user X (job account with read/write) | |
user Y (api account with read-only) | |
alliance table: | |
# Manually created reference info for "meta-clan" groupings |
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
#!/usr/bin/env python | |
""" | |
TEST code for using destiny.plumbing | |
""" | |
import os | |
import sys | |
import requests | |
def main(): |