-
Notifications
You must be signed in to change notification settings - Fork 884
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
added ips and email address to mock ds #426
Conversation
gsheni
commented
Feb 11, 2019
- Added new Variable Type, IP Address and email address
- Added these types to mock_ds
- Added to docs
Codecov Report
@@ Coverage Diff @@
## master #426 +/- ##
==========================================
+ Coverage 96.24% 96.24% +<.01%
==========================================
Files 93 93
Lines 8433 8440 +7
==========================================
+ Hits 8116 8123 +7
Misses 317 317
Continue to review full report at Codecov.
|
Thematically, wouldn't IP address make more sense as as session variable and email as a customer variable? |
Fixed. |
@@ -75,10 +75,10 @@ def test_update_data(es): | |||
es['customers'].update_data(df.drop(columns=['cohort'])) | |||
assert 'Updated dataframe is missing new cohort column' in str(excinfo) | |||
|
|||
error_text = 'Updated dataframe contains 13 columns, expecting 12' | |||
error_text = 'Updated dataframe contains 14 columns, expecting 13' |
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.
1 more column(email) was added to the customer's entity.
with pytest.raises(ValueError, match=error_text) as excinfo: | ||
es['customers'].update_data(df) | ||
assert 'Updated dataframe contains 13 columns, expecting 12' in str(excinfo) | ||
assert 'Updated dataframe contains 14 columns, expecting 13' in str(excinfo) |
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.
1 more column(ip) was added to the session's entity.