Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easier to test set uploads in development #43

Closed
emhoracek opened this issue Oct 10, 2017 · 1 comment
Closed

Make it easier to test set uploads in development #43

emhoracek opened this issue Oct 10, 2017 · 1 comment

Comments

@emhoracek
Copy link
Owner

emhoracek commented Oct 10, 2017

It's annoying to test uploads now that uploading requires user authentication. We would like it to be quick and easy.

One idea is to have a function that adds a test user only in development, and code that automatically logs you in as that user only in development. But I'm open to other ideas!

If you want to go with my idea:

In the initialize function, check the ENV envar to see if it is "devel" (in development mode). If so, use createUser to create the user testy with name Testy McTestPerson and email test@test.com. Use setLoggedInUser with "testy" so testy is always logged in.

@emhoracek
Copy link
Owner Author

Going to go a different way, with uploads permitted without an account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant