-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
139 additions
and
76 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
import unittest | ||
from unittest import skip | ||
|
||
from tests.utils import read_file | ||
from util.azure_table import process_meta_blob | ||
from util.excel import excel_raw_file_to_sheet, sheet_to_bridge_dict | ||
from util.excel import excel_bytes_to_dataframe | ||
|
||
|
||
@skip("No time to fix") | ||
class CreateProductTableRow(unittest.TestCase): | ||
@staticmethod | ||
def test_create_row(): | ||
with open("src/test_data/metadata.csv") as meta_file: | ||
productdata = process_meta_blob(meta_file) | ||
process_meta_blob(meta_file) | ||
|
||
product_bridge_file = read_file("src/test_data/flow-carb10.xlsx") | ||
product_sheet = excel_raw_file_to_sheet(product_bridge_file) | ||
product_data = sheet_to_bridge_dict(product_sheet) | ||
|
||
productdata[0]["cumulative"] = product_data["cumulative"] | ||
product_df = excel_bytes_to_dataframe(product_bridge_file) | ||
product_df.Cumulative.to_list() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.