Skip to content

Add support for certain unicode characters in ot names#234

Merged
MarkKoz merged 2 commits into
masterfrom
django-ot-names
Sep 22, 2019
Merged

Add support for certain unicode characters in ot names#234
MarkKoz merged 2 commits into
masterfrom
django-ot-names

Conversation

@MarkKoz
Copy link
Copy Markdown
Contributor

@MarkKoz MarkKoz commented Aug 9, 2019

No description provided.

response = self.client.post(f'{url}?name={name}')
self.assertEqual(response.status_code, 201)

def test_name_in_full_list(self):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this test name is weird. I don't fully understand what it does without the docstring.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I agree and it doesn't look like it belong under creation test anyway. In fact, it looks quite similar to test_returns_name_in_list

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's just rename it to something that makes sense, then.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was trying to say that this test looks redundant.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Aha. Okay well I'd be open to you just scrapping it, too, then.

@lemonsaurus
Copy link
Copy Markdown
Contributor

this looks excellent.

@MarkKoz
Copy link
Copy Markdown
Contributor Author

MarkKoz commented Sep 9, 2019

03a08db was pushed by @jchristgit despite this PR being open (and made me realise this PR lacks a migration). What should I do with this PR? Make it a test-only PR? In that case I should probably clean up the history with a force push 👿.

@lemonsaurus lemonsaurus changed the base branch from django to master September 15, 2019 08:45
@SebastiaanZ
Copy link
Copy Markdown
Contributor

What should I do with this PR? Make it a test-only PR? In that case I should probably clean up the history with a force push

Let's revitalize this PR.

I think it's a good idea to have a couple of test cases in place for that regex validation. I know it's not a strict requirement for the test coverage in terms of lines touched during testing, but it would be beneficial in terms of feature coverage.

@MarkKoz
Copy link
Copy Markdown
Contributor Author

MarkKoz commented Sep 21, 2019

@SebastiaanZ Not sure what you mean. I already improved on the tests that were there. Did you have something more in mind?

@SebastiaanZ
Copy link
Copy Markdown
Contributor

@MarkKoz No, but you asked what you had to do with this PR and it was getting stale. I tried answering that question by saying that I think that your tests are still a useful addition to the site, but I guess my wording threw you off.

It's currently conflicting with master, though, because of the now redundant changes in the model file. I wouldn't be opposed to you cleaning up the history in this case, since I don't think it's going to complicate reviews.

@MarkKoz
Copy link
Copy Markdown
Contributor Author

MarkKoz commented Sep 21, 2019

This should be good to go now.

Copy link
Copy Markdown
Contributor

@SebastiaanZ SebastiaanZ left a comment

Choose a reason for hiding this comment

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

lgtm. Tested locally and everything works.

@MarkKoz MarkKoz merged commit 1d9ac04 into master Sep 22, 2019
@MarkKoz MarkKoz deleted the django-ot-names branch September 22, 2019 03:14
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.

3 participants