This file contains 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
# Run this app with `python app.py` and | |
# visit http://127.0.0.1:8050/ in your web browser. | |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
import plotly.express as px | |
import pandas as pd | |
app = dash.Dash(__name__) |
This file contains 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
Feature: Counter | |
Scenario: Initial counter value is 0 | |
Given the app is running | |
Then i see {'0'} text | |
Scenario: Plus button increase the counter value | |
Given the app is running | |
When i tap {Icons.add} icon | |
Then i see {'1'} text |
This file contains 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
Feature: Counter | |
Scenario: Initial counter value is 0 | |
Given the app is running | |
Then i see {'0'} text | |
Scenario: Plus button increase the counter value | |
Given the app is running | |
When i tap {Icons.add} icon | |
Then i see {'1'} text |
This file contains 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
Feature: Counter | |
Scenario: Initial counter value is 0 | |
Given the app is running | |
Then i see {'0'} text |
This file contains 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 os | |
from flask import Flask | |
from generator import generator | |
app = Flask(__name__) | |
@app.route("/") | |
def generate_buzz(): | |
page = """<html> | |
<head> |
This file contains 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
wily: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2-beta | |
with: | |
fetch-depth: 0 | |
- uses: actions/checkout@v2-beta | |
with: | |
ref: refs/heads/master |
This file contains 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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Python application | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] |
This file contains 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 unittest | |
from generator import generator | |
def test_sample_single_word(): | |
l = ('test', 'a', 'word') | |
word = generator.sample(l) | |
assert word in l | |
def test_sample_multiple_words(): | |
l = ('test', 'multiple', 'words') |
This file contains 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
from __future__ import print_function | |
import random | |
character = ( | |
"Hero", | |
"Recruit", | |
"Invader", | |
"Commander", | |
"Children", | |
"Spies", |
NewerOlder