I hereby claim:
- I am rj76 on github.
- I am 0xrichard (https://keybase.io/0xrichard) on keybase.
- I have a public key ASBa3RLwqZyJRBbPyDqlL0T1HAaGkAyM3vuKbSeHW_3bMwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
### Keybase proof | |
I hereby claim: | |
* I am rj76 on github. | |
* I am oxyrichard (https://keybase.io/oxyrichard) on keybase. | |
* I have a public key ASAXOdPNXWahu0cory-Engtu0WZ3a48Dfwc1jLHciXa9vwo | |
To claim this, I am signing this object: |
# core mixins | |
from tenant_schemas.test.client import TenantClient | |
from rest_framework.test import APIClient | |
class My24ApiClient(TenantClient, APIClient): | |
pass | |
# core fixtures.py | |
from tenant_schemas.utils import get_public_schema_name, tenant_context |
import json | |
from io import StringIO | |
import os | |
import django | |
from django.conf import settings | |
from django.core import management | |
from locust import HttpLocust, TaskSet |
#!/bin/bash | |
FILES_PATTERN='\.py$' | |
FORBIDDEN='import ipdb' | |
MSG="COMMIT REJECTED. Found \"${FORBIDDEN}\" references. Please remove them before commiting." | |
# check for debug stuff | |
git diff --name-only | \ | |
grep -E $FILES_PATTERN | \ | |
GREP_COLOR='4;5;37;41' xargs grep --color --with-filename -n "$FORBIDDEN" && echo $MSG && exit 1 |
blacklist nouveau | |
options nouveau modeset=0 |
import 'react-native'; | |
import React from 'react'; | |
import Index from '../index.android.js'; | |
// Note: test renderer must be required after react-native. | |
import renderer from 'react-test-renderer'; | |
it('renders correctly', () => { | |
const tree = renderer.create( | |
<Index /> |
#/bin/bash | |
convertsecs() { | |
((h=${1}/3600)) | |
((m=(${1}%3600)/60)) | |
((s=${1}%60)) | |
printf "Tests took %02d hours, %02d minutes, %02d seconds...\n" $h $m $s | |
} | |
env python manage.py test --settings settings.test_settings $1 2> logs/test_stderr.log |
#/bin/bash | |
success="/home/richard/Downloads/computer_systems.wav" | |
fail="/home/richard/Downloads/go_back_to_work.wav" | |
./manage.py test --settings settings.test_settings | |
if [ $? -ne 0 ]; then | |
vlc --play-and-exit --quiet --intf dummy vcd:// $fail | |
else | |
vlc --play-and-exit --quiet --intf dummy vcd:// $success |
I looked at the existing codebase and taking into account my experiences with previous Django projects/deployments I would suggest to do the following: