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
| # language: pt-br | |
| Funcionalidade: Log in no admin do django | |
| Cenário: Login no admin do django com usuário e senha corretos | |
| Dado o usuário "admin" e a senha "admin" | |
| Quando eu preencher o formulário de login e enviar os dados | |
| Então devo ver na tela a mensagem "Encerrar sessão" | |
| Cenário: Login no admin do django com usuário e senha incorretos | |
| Dado o usuário "usuario_invalido" e a senha "senha_invalida" |
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 | |
| # -*- coding: utf-8 -*- | |
| import math | |
| import re | |
| # dado um título e lista de listas no formato | |
| # ('<variável>', '<tipo>', '<descricao>', '<fórmula>') | |
| # pede-se qual variável calcular, pede os valores e dá o resultado | |
| # qualquer valor vazio saida da função |
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
| # Author: Eduardo Frazão | |
| # OBS: this is for my android phone with Qpython3. | |
| # that's my personal trainer \o/ | |
| from time import sleep | |
| from subprocess import call | |
| import sl4a | |
| droid = sl4a.Android() | |
| call("clear") |
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 asyncio | |
| import random | |
| async def slow_action(): | |
| await asyncio.sleep(random.randrange(1, 5)) | |
| async def my_range(n): | |
| i = 0 | |
| while i < n: |
OlderNewer