why my job are not performed during test?

here a small description of my code (simplified) app/jobs/ class GenerateInvoiceJob < ActiveJob::Base queue_as :default def perform() Invoice.create end end app/models/ class Product < ActiveRecord::Base def buy GenerateInvoiceJob.perform_later end end spec/jobs RSpec.describe AnotherJob, type: :job do context “with filter” do … end end spec/models RSpec.describe Product, type: :model do describe ‘#buy’ do it “should generate…

Details

is there a way to return the kind of the type of an element?

dict(map(lambda x,y:(x,type(y)) ,new_row.keys(),new_row.values())) #this return {‘customer_name’: <class ‘str’>, ‘customer_id’: <class ‘str’>, ‘customer_age’: <class ‘int’>, #’customer_city’: <class ‘str’>, ‘phone_num’: <class ‘str’>} #but I need : {‘customer_name’: str, ‘customer_id’: str, ‘customer_age’: int, ‘customer_city’: str, ‘phone_num’: str}

Details

Unknown column ‘reviewId’ in ‘where clause’

I ran this before and it worked. However, I ran it today and it suddenly gave me this error: This is my file holding the constructor: class Review { constructor(reviewId, reviewUserId, reviewResId, review, rating, numberOfLikes, datePosted) { this.reviewId = reviewId; this.reviewUserId = reviewUserId; this.reviewResId = reviewResId; this.review = review; this.rating = rating; this.numberOfLikes = numberOfLikes;…

Details