- Start backend_test:
make run-docker-test
that will build both backend_test and start stripe-mock container - Run test in docker container:
make docker-test
=> That will automaticly run test on all test files - If we want test specific file, replace
PIPENV_DOTENV_LOCATION=.test.env pipenv run pytest tests
with specific file path
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
commands: | |
00_install_epel: | |
cwd: /tmp | |
command: 'sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && sudo yum-config-manager --enable epel' | |
01_node_install: | |
cwd: /tmp | |
test: '[ ! -f /usr/bin/node ] && echo "node not installed"' | |
command: 'sudo yum install -y nodejs --enablerepo=epel' | |
02_npm_install: | |
cwd: /tmp |
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
" plugins | |
call plug#begin('~/.config/nvim/plugged') | |
"colorschemes | |
Plug 'arcticicestudio/nord-vim' | |
"airline | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
"navigation |
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
"E-mails: A Mandarin Chinese Cheat Sheet | |
By /u/Norcan987 --- Knowledge is self-empowerment. Languages are freedom. Feel free to reproduce and pass around J<" | |
CONTENTS | |
1. Terms relating to e-mails. | |
2. Introduction Phrases | |
3. Emailing First |
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
javascript: (() => { | |
const toggle = tip => ({ key }) => | |
key === ' ' && document.querySelectorAll('[data-tooltip]').forEach(el => el.dataset.tooltip.includes(tip) && el.click()); | |
document.body.onkeyup = toggle('Turn off microphone'); | |
document.body.onkeydown = toggle('Turn on microphone'); | |
})(); |
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
Bộ đội ăn gì ? | |
Đã bước chân vào bộ đội là toàn ăn cơm, 1 năm 365 ngày, ăn toàn cơm, ngày 3 bữa cơm, ở đơn vị cũng cơm, diễn tập cũng cơm, đi ngủ mơ ăn đủ thứ, trừ ăn cơm. Cơm bộ đội cơ bản cũng là mấy con chăn nuôi được thôi chứ không có gì đặc biệt. Cơm bộ đội sạch về mặt hóa học nhưng bẩn về mặt sinh học. Nhưng không sao cả, ăn cho luyện bụng. | |
Mình là thằng rất hay bị dí đi tăng cường bếp (bị phạt), vì tăng cường bếp rất là chán nên mình toàn trốn. Nhưng bù lại có một mặt tốt là mình có kinh nghiệm trong việc ăn sạch, uống sạch. | |
Trong quân đội, việc ăn uống được tổ chức tập trung theo cấp Tiểu đoàn (Cấp d có khoảng 500 cán bộ chiến sĩ), mà 1 người phục vụ 25 người, nên nồi nấu rất là to, mỗi nồi canh phải chứa được nửa tạ rau mà rau mỗi lần nhập vào nhà bếp toàn hàng tạ phát một. Rau rửa cũng rất là kĩ, rau nào cũng được rửa tận 1 lần, mỗi lượt rửa luôn 1 tạ. Nhớ lần đang đứng vớt 50 cân rau luộc từ trong nồi ra một cái rổ nhét cả con lợn vào vẫn vừa, thế đ' nào vớt được nguyên 1 đôi dép quân nhu cỡ 42 tr |
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 generate_fingerprint(self): | |
# the body of fingerprint is generated with the following sequences | |
# seperated by '_' | |
sequence = [ | |
'account_number', | |
'account_routing_type', | |
'account_routing_value', | |
'bank_country_id', | |
'swift_code', | |
'account_routing_type2', |
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
3eZRjpRdocktNuyYTuUqkiLp |
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
for filename in IBMPlexSans*; do echo mv \"$filename\" \"${filename//IBMPlexSans/Roboto}\"; done |
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
try: | |
# Use both stripe_card or intent_payment_method is workable to charge | |
stripe_payment_method = payment_method.intent_payment_method or payment_method.stripe_card | |
idempotency_key = random_string_generator(20) | |
token = stripe.Token.create( | |
customer=current_user.stripe_customer, | |
stripe_account=connected_stripe_account_id | |
) | |
customer = stripe.Customer.create( | |
description='Shared Customer: {} {}'.format(current_user.first_name, current_user.last_name), |