Skip to content

Commit 97a5550

Browse files
author
Jeroendevr
authored
Merge pull request #14 from Jeroendevr/master
Update to test
2 parents 7f2933f + a335b17 commit 97a5550

File tree

4 files changed

+27
-23
lines changed

4 files changed

+27
-23
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
dist
44
build/
55
.DS_Store
6+
.venv

dev-requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# When installing dev dependencies also install the user dependencies
2+
-r requirements.txt
3+
4+
pytest==7.0.0

setup.cfg

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
[metadata]
2-
name=dash_flask_login
3-
version=__version__ # noqa: F821
4-
author=Jeroen de Vries
5-
author_email=jeroendevries@runbox.eu
6-
description=Integration of Dash with Flask-Login
7-
long_description= file: README.md
8-
url = https://github.com/Jeroendevr/dash-flask-login
9-
classifiers =
10-
Intended Audience :: Developers
11-
Topic :: Utilities
12-
Natural Language :: English
13-
Operating System :: OS Independent
14-
License :: OSI Approved :: MIT License
15-
Programming Language :: Python :: 3
2+
name=dash_flask_login
3+
version=__version__
4+
author=Jeroen de Vries, gaw89
5+
description=Integration of Dash with Flask-Login
6+
long_description= file: README.md
7+
url = https://github.com/gaw89/dash-flask-login
8+
classifiers =
9+
Intended Audience :: Developers
10+
Topic :: Utilities
11+
Natural Language :: English
12+
Operating System :: OS Independent
13+
License :: OSI Approved :: MIT License
14+
Programming Language :: Python :: 3
15+
Programming Language :: Python :: 3.9
1616

1717
[options]
18-
package_dir =
19-
= dash_flask_login
20-
packages = find:
21-
python_requires = >=3.9
22-
18+
package_dir = dash_flask_login
19+
packages = find:
20+
python_requires = >=3.9
21+
2322
[options.packages.find]
24-
where = dash_flask_login
23+
where = dash_flask_login

tests/test_flask_login_auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import unittest
22
import os
33
from flask import Flask
4-
import dash_core_components as dcc
5-
import dash_html_components as html
4+
from dash import dcc
5+
from dash import html
66
from dash.dependencies import Input, Output, State
77
from dash import Dash
88
from dash_flask_login import FlaskLoginAuth
@@ -71,7 +71,7 @@ def login_logout(self, username, password):
7171
def test_app_no_auth(self):
7272
response = self.server.get('/app1/', follow_redirects=True)
7373
self.assertEqual(response.status_code, 200)
74-
self.assertTrue('<title>Dash</title>' in response.data)
74+
self.assertTrue('<title>Dash</title>' in response.data.decode('utf-8'))
7575

7676
def test_app_default_login_no_users(self):
7777

0 commit comments

Comments
 (0)