Skip to content

Conversation

@kopreschko
Copy link
Contributor

No description provided.

Copy link
Contributor

@vbrodsky vbrodsky left a comment

Choose a reason for hiding this comment

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

with some suggestions
PS Are you also planning to add sdk integration test?



@pytest.fixture
def generate_random_ndjson(rand_gen):
Copy link
Contributor

Choose a reason for hiding this comment

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

why not use static json line for test predictability?

def test_with_correct_ndjson(self, tmp_path, generate_random_ndjson):
directory = tmp_path / "file-converter"
directory.mkdir()
line_count = 10
Copy link
Contributor

Choose a reason for hiding this comment

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

curious why can't we test the same with 2 lines

ndjson = generate_random_ndjson(line_count)
file_content = "\n".join(ndjson) + "\n"

mock_client = MagicMock()
Copy link
Contributor

Choose a reason for hiding this comment

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

like this client mocking

@kopreschko kopreschko merged commit 70a6863 into develop Nov 21, 2023
@kopreschko kopreschko deleted the kopreschko/SDK-427 branch November 21, 2023 15:31
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