Check http://flask.pocoo.org/docs/1.0/testing/
# test_stuff.py
class StuffTestCase(unittest.TestCase):
def setUp(self):
self.app = create_app('testing') # app factory
Check http://flask.pocoo.org/docs/1.0/testing/
# test_stuff.py
class StuffTestCase(unittest.TestCase):
def setUp(self):
self.app = create_app('testing') # app factory
# basic renaming of files, to enforce a minimum consistency | |
from pathlib import Path | |
for ix, file in enumerate(sorted(Path.cwd().glob('*'))): | |
new_filename = f'{ix:02}_' + file.name.lower().replace(' ','_') | |
print(f'{file.name} > {new_filename}') | |
file.rename(new_filename) |
[user] | |
email = daquintanav@gmail.com | |
name = Diego Quintana | |
[alias] | |
a = add | |
co = checkout | |
st = status | |
ci = commit | |
br = branch | |
unstage = reset HEAD -- |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
" check https://github.com/VundleVim/Vundle.vim for details | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') |
sudo apt-get install -y git curl tmux weechat net-tools
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.7.0
or whatever version you like. --enable-shared
is needed for other packages to work properly, like vundle
.ejemplo de arica para allData_ddl_legend.json
{
"agno": 2016,
"cod_com_alu": 15102,
"cod_com_rbd": 15101,
"cod_reg": 15,
"flow": 64,
"lat_com_alu": -19.155567,
"lat_com_rbd": -18.47895865,
from flask_sqlalchemy import make_url | |
from urllib.parse import quote_plus | |
def build_connection_string(**params): | |
""" | |
Return the url for MSSQL Azure DB Instances | |
""" | |
connection_string = quote_plus( | |
("DRIVER={driver};" |
set nocompatible " required | |
filetype off " required | |
"allow for external clipboard buffers | |
set clipboard=unnamed | |
" set numbers on | |
set nu | |