def uploadProduct(file_path=None):
    if request.method == 'POST':
        file_name = request.form['file_path']
        return jsonify(ProductService.uploadProductToMongo(file_name))
 def test_upload_data_to_mongo(self):
     response = ProductService.uploadProductToMongo("upload.csv")
     self.assertEqual("Successfully uploaded data to MongoDB from file: upload.csv", response)