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

Dev #577

Merged
merged 19 commits into from
Sep 18, 2018
Merged

Dev #577

merged 19 commits into from
Sep 18, 2018

Conversation

ovkulkarni
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Sep 17, 2018

Coverage Status

Coverage increased (+1.3%) to 42.247% when pulling ba660c1 on dev into d679b68 on master.

Copy link
Member

@naitian naitian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3 thanks for adding tests.


Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
Vagrant.configure("2") do |config|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why introduce the magic number instead of declaring the VAGRANTFILE_API_VERSION variable?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Answer referenced in #576 (comment)


def test_authentication(self):
User.objects.get_or_create(username="awilliam")
with self.settings(MASTER_PASSWORD='pbkdf2_sha256$24000$qp64pooaIEAc$j5wiTlyYzcMu08dVaMRus8Kyfvn5ZfaJ/Rn+Z/fH2Bw='):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be a good idea to extract all the test user stuff into a helper library?

def login_with_args(self, uname, grad_year):
user = User.objects.get_or_create(username=uname,
graduation_year=grad_year)[0]
with self.settings(MASTER_PASSWORD='pbkdf2_sha256$24000$qp64pooaIEAc$j5wiTlyYzcMu08dVaMRus8Kyfvn5ZfaJ/Rn+Z/fH2Bw='):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract the password into a helper library to avoid retyping this hash?

@ovkulkarni ovkulkarni merged commit ba660c1 into master Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants