065abe3 Fix DetachedInstanceError in command module_build_locally

Authored and Committed by cqi 4 years ago
    Fix DetachedInstanceError in command module_build_locally
    
    Update test test_build_module_locally_set_stream accordingly by not
    mocking database session object in order to test against the real
    SQLAlchemy Session scope.
    
    Resolves: RHBZ#1752075
    
    Signed-off-by: Chenxiong Qi <cqi@redhat.com>
    
        
file modified
+45 -16