-
Notifications
You must be signed in to change notification settings - Fork 0
Some reorganize and clean up #2
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
base: master
Are you sure you want to change the base?
Conversation
| return registration_data_factory() | ||
|
|
||
|
|
||
| @pytest.mark.parametrize('page', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
советуют физические пути к url заменять на конструкции reverse('identity:login"), т.к. лучше привизываться к именам, а не к hardcoded путям. Так тесты становятся менее хрупкими
| def pytest_configure(config: pytest.Config) -> None: | ||
| """Create or restore random value to be used as seed during tests.""" | ||
| seed_value = config.getoption('randomly_seed') | ||
| default_seed = random.Random().getrandbits(random_seed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не очень логично называть переменную, которую ты используешь в качестве размерности сгенерированного случайного числа, random_seed, т.к. seed у тебя вычисляется дальше. Можно было назвать как-нибудь типа random_seed_length
|
Я полазил посмотрел по коду, стало интересно, откуда в этой фикстуре @pytest.fixture()
def user_data_factory(field: Field) -> UserDataFactory:приходит |
|
|
||
|
|
||
| @pytest.fixture(scope='session') | ||
| def field() -> Field: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А, все, увидел, круто =)
Переход к домашке второй недели:
Сделала пул реквест чтобы не забыть до дедлайна, ушла обратно делать вторую домашку
Если будут значительные апдейты по домашке - добавлю в список)